Commit graph

5,292 commits

Author SHA1 Message Date
Gabriel Luiz Freitas Almeida
4699027ffe 🔀 chore(docker-compose.override.yml): remove unused 'tests' service configuration
🔧 chore(docker-compose.test.yml): add 'tests' service configuration to run pytest
2023-09-25 17:55:29 -03:00
Gabriel Luiz Freitas Almeida
cf5c7b817e 🔧 chore(docker-compose.override.yml): add traefik labels to avoid conflicts with backend service
🔧 chore(docker-compose.override.yml): configure traefik labels for tests service to route traffic and set load balancer port
2023-09-25 17:47:59 -03:00
Gabriel Luiz Freitas Almeida
df81154536 🚀 chore(docker-compose.yml): add dependencies for the service to improve startup order and reliability 2023-09-25 17:08:54 -03:00
Gabriel Luiz Freitas Almeida
3486248faa 🐳 chore(docker-compose.yml): update volume names for consistency and clarity
- Rename volume `./pgadmin` to `pgadmin-data` for better naming convention and clarity.
- Rename volumes for RabbitMQ:
  - `./.docker/rabbitmq/etc/` to `rabbitmq_data` for consistency and clarity.
  - `./.docker/rabbitmq/data/` to `rabbitmq_data` for consistency and clarity.
  - `./.docker/rabbitmq/logs/` to `rabbitmq_log` for consistency and clarity.

No functional changes, only volume name updates.
2023-09-25 16:26:53 -03:00
Gabriel Luiz Freitas Almeida
2a3ba95af9 🐛 fix(users.py): update reference to settings.NEW_USER_IS_ACTIVE to settings.auth_settings.NEW_USER_IS_ACTIVE to fix incorrect attribute access 2023-09-25 16:10:29 -03:00
Gabriel Luiz Freitas Almeida
a2c7d79451 📝 docs(login.mdx): add guide for sign up and sign in functionality in Langflow
📝 docs(login.mdx): explain the purpose of login functionality and introduce enhanced login mechanism in Langflow

📝 docs(login.mdx): document the crucial environment variables for configuring the login settings in Langflow

📝 docs(login.mdx): provide information on how to disable automatic login and enforce user authentication in Langflow

📝 docs(login.mdx): explain the usage of LANGFLOW_SUPERUSER and LANGFLOW_SUPERUSER_PASSWORD environment variables for setting up a superuser in Langflow

📝 docs(login.mdx): document the usage of LANGFLOW_SECRET_KEY environment variable for encrypting the superuser's password in Langflow

📝 docs(login.mdx): explain the purpose of LANGFLOW_NEW_USER_IS_ACTIVE environment variable for automatically activating new users in Langflow

📝 docs(login.mdx): provide information on the command-line interface for managing superusers in Langflow

📝 docs(login.mdx): document the sign-up process in Langflow and provide an image of the sign-up page

📝 docs(login.mdx): explain how users can change their profile settings in Langflow and provide an image of the profile settings page

📝 docs(login.mdx): explain how the superuser can access the admin page in Langflow and provide an image of the admin page

📝 docs(superuser.mdx): add guide for superuser permissions in Langflow
2023-09-25 15:55:33 -03:00
Gabriel Luiz Freitas Almeida
be85fcc607 🔧 chore(.env.example): add configuration for new user and update OpenAI API key
🔥 refactor(docker-compose.celery.yml): remove unused celery service configuration
2023-09-25 15:55:10 -03:00
Gabriel Luiz Freitas Almeida
a5da416bc4 🔧 fix(users.py): add support for NEW_USER_IS_ACTIVE setting to determine if new users should be active by default
🔧 fix(cache/manager.py): add warning log message to inform users that RedisCache is experimental and may not work as expected
🔧 fix(settings/auth.py): add NEW_USER_IS_ACTIVE setting to determine if new users should be active by default
2023-09-25 15:54:55 -03:00
Gabriel Luiz Freitas Almeida
d8ba8f0746 🚀 feat(endpoints.py): add warning message for experimental feature to inform users about potential issues and encourage reporting 2023-09-24 00:09:53 -03:00
Gabriel Luiz Freitas Almeida
d1203b7fb7 🐛 fix(ci.yml): remove unnecessary working-directory from docker compose command to fix build and start services step in CI workflow 2023-09-23 23:47:48 -03:00
Gabriel Luiz Freitas Almeida
bc904fba69 🐛 fix(ci.yml): fix docker compose command to correctly specify the compose file before the up command 2023-09-23 23:44:02 -03:00
Gabriel Luiz Freitas Almeida
f1b14232c6 🐛 fix(ci.yml): update docker compose command to include the correct file and build the services 2023-09-23 23:42:23 -03:00
Gabriel Luiz Freitas Almeida
a2c5c1b71f 🔧 chore(ci.yml): update docker compose command to include result_backend and broker services for testing environment 2023-09-23 23:37:56 -03:00
Gabriel Luiz Freitas Almeida
ae26a55c9f 🔧 chore(ci.yml): change working directory to ./deploy to create env file in the correct location 2023-09-23 23:36:53 -03:00
Gabriel Luiz Freitas Almeida
419045f903 🔧 chore(ci.yml): add step to create .env file from secrets.ENV_FILE to provide environment variables for the build and start services step 2023-09-23 23:35:37 -03:00
Gabriel Luiz Freitas Almeida
1571e8b9ee 🔥 refactor(locustfile.py): remove unused imports and variables to improve code readability and maintainability 2023-09-23 23:30:54 -03:00
Gabriel Luiz Freitas Almeida
a75e80b0f7 🔧 refactor(endpoints.py): remove unused import of get_cache_service to improve code cleanliness and maintainability
🔧 refactor(schemas.py): make the backend field in ProcessResponse schema optional to handle cases where backend is not provided
🔧 refactor(utils.py): add type hint ignore comment to import statement for Celery to avoid type checking error
2023-09-23 23:30:45 -03:00
Gabriel Luiz Freitas Almeida
c5a6003ef5 🔧 fix(manager.py): replace logging module with loguru logger for consistent logging across the project
 feat(manager.py): add debug logs to check Celery availability and backend being used
🔧 fix(manager.py): move check_celery_availability function definition above its usage to improve code readability
 feat(manager.py): add debug logs to show task launch details and backend being used
2023-09-23 23:29:20 -03:00
Gabriel Luiz Freitas Almeida
5f3c602b29 🔥 chore(users.py): remove unused test endpoint for adding a superuser
The `add_super_user_for_testing_purposes_delete_me_before_merge_into_dev` endpoint was added for testing purposes and is no longer needed. It has been removed to clean up the codebase.
2023-09-23 23:29:10 -03:00
Gabriel Luiz Freitas Almeida
8760cf7f9a 🔧 fix(endpoints.py): import missing dependencies to improve code readability and maintainability
🔧 fix(endpoints.py): generate session ID if it is None to ensure a valid session ID is used
🔧 fix(endpoints.py): add backend information to the ProcessResponse to provide additional context
🔧 fix(schemas.py): add backend field to the ProcessResponse schema to match the changes in the endpoints.py file
2023-09-23 23:28:56 -03:00
Gabriel Luiz Freitas Almeida
befe79775b 🐛 fix(celery_app.py): add return type annotation to make_celery function to improve code readability and maintainability
🔧 chore(celeryconfig.py): update broker_url default value to use RabbitMQ instead of Redis for better performance and scalability
2023-09-23 23:28:37 -03:00
Gabriel Luiz Freitas Almeida
8c7df5e2f7 🐛 fix(utils.py): change get_celery_worker_status function to use app.control.ping() instead of i.ping() for better readability and consistency
🐛 fix(conftest.py): update LANGFLOW_REDIS_HOST and BROKER_URL environment variables to use "result_backend" instead of "queue" for better clarity and accuracy
2023-09-23 23:28:18 -03:00
Gabriel Luiz Freitas Almeida
f7ab483748 🔧 chore(.env.example): update RabbitMQ configuration and add OpenAI API key and superuser credentials
- Update RabbitMQ configuration by setting the default username and password to "langflow"
- Add OpenAI API key for integration with OpenAI services
- Add superuser credentials for the Langflow application
2023-09-23 23:27:53 -03:00
Gabriel Luiz Freitas Almeida
d6262b0b86 🔧 chore(docker-compose.override.yml): rename 'queue' service to 'result_backend' for better clarity and consistency
🔧 chore(docker-compose.yml): add 'broker' service for RabbitMQ management console
2023-09-23 23:26:25 -03:00
Gabriel Luiz Freitas Almeida
22391c46eb 🔧 chore(.gitignore): add .docker to the list of ignored files
🐛 fix(locustfile.py): remove unused import and fix incorrect variable name
 feat(locustfile.py): add support for authentication and flow creation in on_start method
2023-09-23 23:25:38 -03:00
Gabriel Luiz Freitas Almeida
8bbf25ee14 🐛 fix(frontend): update format script in package.json to include all files in subdirectories for consistent code formatting 2023-09-22 18:16:57 -03:00
Gabriel Luiz Freitas Almeida
200f5d647c fix more linting issues 2023-09-22 18:15:23 -03:00
Gabriel Luiz Freitas Almeida
99a4f01865 fix linting issues 2023-09-22 18:15:12 -03:00
Gabriel Luiz Freitas Almeida
479a808634 🔧 fix(endpoints.py): remove unused import and function call to improve code cleanliness and maintainability
🔧 fix(endpoints.py): move import statement to the top of the file for better organization and readability
🔧 fix(getters.py): change service type from DATABASE_MANAGER to DATABASE_SERVICE for consistency and clarity
🔧 fix(getters.py): change service type from CACHE_MANAGER to CACHE_SERVICE for consistency and clarity
🔧 fix(getters.py): change service type from SESSION_MANAGER to SESSION_SERVICE for consistency and clarity
🔧 fix(getters.py): change service type from TASK_MANAGER to TASK_SERVICE for consistency and clarity
🔧 fix(getters.py): remove unused function get_chat_service() to improve code cleanliness and maintainability
🔧 fix(getters.py): remove duplicate function get_settings_service() to improve code cleanliness and maintainability
🔧 fix(getters.py): remove duplicate function get_db_service() to improve code cleanliness and maintainability
🔧 fix(getters.py): remove duplicate function get_session() to improve code cleanliness and maintainability
🔧 fix(utils.py): remove unused import statement to improve code cleanliness and maintainability
🔧 fix(utils.py): remove unused function setup_superuser() to improve code cleanliness and maintainability
🔧 fix(utils.py): remove unused function teardown_superuser() to improve code cleanliness and maintainability
🔧 fix(utils.py): remove unused function teardown_services() to improve code cleanliness and maintainability
🔧 fix(utils.py): remove unused function initialize_settings_manager() to improve code cleanliness and maintainability
🔧 fix(utils.py): remove unused function initialize_session_manager() to improve code cleanliness and maintainability
🔧 fix(utils.py): remove unused function initialize_services() to improve code cleanliness and maintainability
🔧 fix(conftest.py): remove unused import statement to improve code cleanliness and maintainability
🔧 fix(conftest.py): remove unused function get_session_override() to improve code cleanliness and maintainability
🔧 fix(conftest.py): remove unused function distributed_client_fixture() to improve code cleanliness and maintainability
🔧 fix(conftest.py): remove unused function client_fixture() to improve code cleanliness and maintainability
🔧 fix(conftest.py): remove unused function test_user() to improve code cleanliness and maintainability
🔧 fix(conftest.py): remove unused function active_user

🐛 fix(test_endpoints.py): update import statements to use get_db_service instead of get_db_manager to improve code semantics
🐛 fix(test_login.py): update import statements to use get_db_service instead of get_db_manager to improve code semantics
🐛 fix(test_setup_superuser.py): update import statements to use get_db_service instead of get_db_manager to improve code semantics
🐛 fix(test_user.py): update import statements to use get_db_service instead of get_db_manager to improve code semantics
2023-09-22 18:07:55 -03:00
Gabriel Luiz Freitas Almeida
1c0f18f897 🔧 fix(__main__.py): update import statements to reflect changes in module structure
🔧 fix(endpoints.py): update import statement to reflect changes in module structure
🔧 fix(flows.py): update import statements to reflect changes in module structure
🔧 fix(login.py): update import statement to reflect changes in module structure
🔧 fix(base.py): update import statement to reflect changes in module structure
🔧 fix(base.py): update import statement to reflect changes in module structure
🔧 fix(custom_component.py): update import statement to reflect changes in module structure
🔧 fix(base.py): update import statement to reflect changes in module structure
🔧 fix(base.py): update import statement to reflect changes in module structure
🔧 fix(base.py): update import statement to reflect changes in module structure
🔧 fix(base.py): update import statement to reflect changes in module structure
🔧 fix(base.py): update import statement to reflect changes in module structure
🔧 fix(base.py): update import statement to reflect changes in module structure
🔧 fix(base.py): update import statement to reflect changes in module structure
🔧 fix(base.py): update import statement to reflect changes in module structure
🔧 fix(base.py): update import statement to reflect changes in module structure
🔧 fix(base.py): update import statement to reflect changes in module structure
🔧 fix(base.py): update import statement to reflect changes in module structure
🔧 fix(base.py): update import statement to reflect changes in module structure
🔧 fix(base.py): update import statement to reflect changes in module structure
🔧 fix(base.py): update import statement to reflect changes in module structure
🔧 fix(base.py): update import statement to reflect changes in module structure
🔧 fix(base.py): update import statement to reflect changes in module structure
🔧 fix(base.py): update import statement to reflect changes in module structure
🔧 fix(base.py): update import statement to reflect changes in module structure
🔧 fix(base.py): update import statement to reflect changes in module structure
🔧 fix(base.py): update import statement to reflect changes in module structure
🔧 fix(base.py): update import statement to reflect changes in module structure
🔧 fix(base.py): update import statement to reflect changes in module structure

🔧 fix(process.py): update import statement for get_session_service in langflow.processing.process module to reflect correct module location
🔧 fix(utils.py): update import statement for get_session and get_settings_service in langflow.services.auth.utils module to reflect correct module location
🔧 fix(manager.py): update import statement for ServiceType.CACHE_MANAGER in langflow.services.chat.manager module to reflect correct module location
🔧 fix(manager.py): update import statement for ServiceType.DATABASE_MANAGER in langflow.services.chat.manager module to reflect correct module location
🔧 fix(utils.py): update import statement for get_settings_service in langflow.services.database.manager module to reflect correct module location
🔧 fix(utils.py): update import statement for get_settings_service in langflow.services.database.utils module to reflect correct module location
🔧 fix(getters.py): update import statement for DatabaseManager, SettingsManager, ChatManager in langflow.services.getters module to reflect correct module location
🔧 fix(getters.py): update import statement for get_settings_manager in langflow.services.getters module to reflect correct function name change
🔧 fix(getters.py): update import statement for get_db_manager in langflow.services.getters module to reflect correct function name change
🔧 fix(getters.py): update import statement for get_chat_manager in langflow.services.getters module to reflect correct function name change
🔧 fix(getters.py): update import statement for get_settings_manager in langflow.services.getters module to reflect correct function name change
🔧 fix(getters.py): update import statement for get_db_manager in langflow.services.getters module to reflect correct function name change
🔧 fix(getters.py): update import statement for get_session in langflow.services.getters module to reflect correct function name change
🔧 fix(getters.py): update import statement for get_chat_manager in langflow.services.getters module to reflect correct function name change
🔧 fix(langfuse.py): update import statement for get_settings_service in langflow.services.plugins.langfuse module to reflect correct module location
🔧 fix(schema.py): update import statement for ServiceType.AUTH_MANAGER, ServiceType.CACHE_MANAGER, ServiceType.SETTINGS_MANAGER, ServiceType.DATABASE_MANAGER, ServiceType.CHAT_MANAGER, ServiceType.SESSION_MANAGER, ServiceType.TASK_MANAGER in langflow.services.schema module to reflect correct module location
🔧 fix
2023-09-22 14:56:16 -03:00
Gabriel Luiz Freitas Almeida
b3febf25dd Merge remote-tracking branch 'origin/dev' into celery 2023-09-22 14:50:19 -03:00
Gabriel Luiz Freitas Almeida
a658f5af89 🔧 chore(conftest.py): comment out unused monkeypatching of USE_CELERY variable to improve code readability and maintainability 2023-09-22 14:15:55 -03:00
anovazzi1
758d5ac9d3 fix(EditFlowSettingsComponent): fix issue with invalidName state not updating correctly when input value is changed 2023-09-22 14:09:44 -03:00
Gabriel Luiz Freitas Almeida
05b1f3658e 🔧 chore(frontend): add newline at the end of package-lock.json file to adhere to coding conventions 2023-09-22 14:05:46 -03:00
Gabriel Luiz Freitas Almeida
73e78b6b68 🔀 merge(listing.py): merge changes from types.py to improve code organization and readability
🔀 merge(types.py): merge changes from listing.py to consolidate all type dictionaries into a single function for better maintainability and readability
2023-09-22 14:03:15 -03:00
Gabriel Luiz Freitas Almeida
df9c8c05b5 🔧 refactor(utils.py): remove unused functions merge_nested_dicts and merge_nested_dicts_with_renaming to improve code readability and maintainability
🔧 refactor(endpoints.py): remove unused imports and functions build_langchain_types_dict, build_langchain_template_custom_component, and build_langchain_custom_component_list_from_path to improve code readability and maintainability

 feat(endpoints.py): add error handling to get_all endpoint to return a 500 status code with the exception message if an error occurs during the retrieval of langchain types dict
2023-09-22 14:03:00 -03:00
Gabriel Luiz Freitas Almeida
e676e3631a 🔧 fix(conftest.py): set LANGFLOW_AUTO_LOGIN environment variable to False in client_fixture and distributed_client_fixture to disable auto login feature 2023-09-22 14:02:30 -03:00
Gabriel Luiz Freitas Almeida
dcd9d3a23e 🐛 fix(__init__.py): rename service_service to service_manager for better semantics
🐛 fix(manager.py): rename service_service to service_manager for better semantics
🐛 fix(manager.py): rename ServiceService class to ServiceManager for better semantics
🐛 fix(manager.py): rename service_service variable to service_manager for better semantics
🐛 fix(utils.py): rename service_service to service_manager for better semantics
 feat(manager.py): add support for service_manager to manage creation of different services
 feat(manager.py): add support for service_manager to update services
 feat(manager.py): add support for service_manager to teardown services
 feat(manager.py): add support for service_manager to register and update factories
 feat(manager.py): add support for service_manager to initialize and reinitialize services
 feat(manager.py): add support for service_manager to get services by type
 feat(manager.py): add support for service_manager to get services by type
 feat(manager.py): add support for service_manager to get services by type
 feat(manager.py): add support for service_manager to get services by type
 feat(manager.py): add support for service_manager to get services by type
 feat(manager.py): add support for service_manager to get services by type
 feat(manager.py): add support for service_manager to get services by type
 feat(manager.py): add support for service_manager to get services by type
 feat(manager.py): add support for service_manager to get services by type
 feat(manager.py): add support for service_manager to get services by type
 feat(manager.py): add support for service_manager to get services by type
 feat(manager.py): add support for service_manager to get services by type
 feat(manager.py): add support for service_manager to get services by type
 feat(manager.py): add support for service_manager to get services by type
 feat(manager.py): add support for service_manager to get services by type
 feat(manager.py): add support for service_manager to get services by type
 feat(manager.py): add support for service_manager to get services by type
 feat(manager.py): add support for service_manager to get services by type
 feat(manager.py): add support for service_manager to get services by type
 feat(manager.py
2023-09-22 13:08:57 -03:00
Gabriel Luiz Freitas Almeida
78ecb4c341 Merge remote-tracking branch 'origin/dev' into celery 2023-09-22 12:53:05 -03:00
Gabriel Luiz Freitas Almeida
a64ee239de
Add env variables to set superuser on deploy (#943) 2023-09-22 12:48:33 -03:00
Gabriel Luiz Freitas Almeida
6151052b18
Merge branch 'dev' into add_cli_options_superuser 2023-09-22 12:48:26 -03:00
Gabriel Luiz Freitas Almeida
43df53363d Merge remote-tracking branch 'origin/main' into dev 2023-09-22 12:44:46 -03:00
Gabriel Luiz Freitas Almeida
416d294117 🐛 fix(basic_example.json): change value of "value" key from "abc" to null to remove hardcoded value and improve flexibility
 test(test_user.py): add test to create a super user for testing purposes and ensure it returns the correct response
🔥 chore(utils.py): remove unused functions run_post and poll_task_status to clean up code
2023-09-22 11:06:25 -03:00
Gabriel Luiz Freitas Almeida
59b62aae17 🔨 refactor(test_graph.py): remove unused imports and variables to improve code readability and maintainability
🔧 chore(test_graph.py): add missing imports for AgentVertex and VectorStoreVertex to fix NameError
🔧 chore(test_graph.py): add missing import for langchain.agents.AgentExecutor to fix NameError
🔧 chore(test_graph.py): add missing import for langchain.graph.Graph to fix NameError
🔧 chore(test_graph.py): add missing import for langflow.processing.process.get_result_and_thought to fix NameError
🔧 chore(test_graph.py): add missing import for langflow.utils.payload.get_root_node to fix NameError
🔧 chore(test_graph.py): add missing import for langchain.llms.fake.FakeListLLM to fix NameError
🔧 chore(test_graph.py): add missing import for langchain.chains.base.Chain to fix NameError
🔧 chore(test_graph.py): add missing import for langflow.graph.edge.base.Edge to fix NameError
🔧 chore(test_graph.py): add missing import for langflow.graph.vertex.base.Vertex to fix NameError
🔧 chore(test_graph.py): add missing import for langflow.graph.vertex.types.ToolkitVertex to fix NameError
🔧 chore(test_graph.py): add missing import for langflow.graph.vertex.types.FileToolVertex to fix NameError
🔧 chore(test_graph.py): add missing import for langflow.graph.vertex.types.LLMVertex to fix NameError
🔧 chore(test_graph.py): add missing import for langflow.graph.vertex.types.AgentVertex to fix NameError
🔧 chore(test_graph.py): add missing import for langflow.graph.vertex.types.VectorStoreVertex to fix NameError
🔧 chore(test_graph.py): add missing import for langchain.agents.AgentExecutor to fix NameError
🔧 chore(test_graph.py): add missing import for langchain.graph.Graph to fix NameError
🔧 chore(test_graph.py): add missing import for langflow.processing.process.get_result_and_thought to fix NameError
🔧 chore(test_graph.py): add missing import for langflow.utils.payload.get_root_node to fix NameError
🔧 chore(test_graph.py): add missing import for langchain.llms.fake.FakeListLLM to fix NameError
🔧 chore(test_graph.py): add missing import for langchain.chains.base.Chain to
2023-09-22 11:04:57 -03:00
Gabriel Luiz Freitas Almeida
1f720a665e 🔧 fix(test_endpoints.py): fix typo in test_process_flow_without_autologin function to improve code readability
 feat(test_endpoints.py): add helper functions run_post and poll_task_status to improve code modularity and reusability
🔧 fix(test_endpoints.py): fix typo in test_basic_chat_with_two_session_ids_and_names function to improve code readability
 feat(test_endpoints.py): add async_test marker to test_vector_store_in_process function to indicate it is an asynchronous test
 feat(test_endpoints.py): add distributed_client parameter to test_vector_store_in_process function to test distributed client functionality
 feat(test_endpoints.py): add async_test marker to test_async_task_processing function to indicate it is an asynchronous test
 feat(test_endpoints.py): add distributed_client parameter to test_async_task_processing function to test distributed client functionality
 feat(test_endpoints.py): add async_test marker to test_async_task_processing_vector_store function to indicate it is an asynchronous test
 feat(test_endpoints.py): add distributed_client parameter to test_async_task_processing_vector_store function to test distributed client functionality
2023-09-22 11:03:54 -03:00
Gabriel Luiz Freitas Almeida
c88f9bf8a0 🔧 chore(conftest.py): refactor client fixture to use dependency overrides for session and add session fixture for creating a session with an in-memory SQLite database
🔧 chore(conftest.py): add distributed_env fixture to set up environment variables for distributed testing
🔧 chore(conftest.py): add distributed_client fixture for distributed testing with Celery
🔧 chore(conftest.py): remove unused imports and fixtures
🔧 chore(test_cache.py): remove unused client fixture from test_build_graph
🔧 chore(test_creators.py): remove unused client fixture from test_lang_chain_type_creator_to_dict
🔧 chore(test_database.py): remove unused client fixture from test_download_file
2023-09-22 11:03:17 -03:00
Gabriel Luiz Freitas Almeida
f8b38ee162 🐛 fix(process.py): rename langchain_object variable to graph for better semantics
🐛 fix(process.py): rename langchain_object variable to built_object in generate_result function for better semantics
🐛 fix(process.py): update session with graph instead of langchain_object to reflect changes
 feat(manager.py): add reinitialize_services function to reinitialize all services
 feat(utils.py): initialize settings service if not already initialized before returning it
2023-09-22 11:00:57 -03:00
Gabriel Luiz Freitas Almeida
04fe2f6054 📝 chore(utils.py): add utility function to check if an object is a basic type
📝 chore(loading.py): refactor code to improve readability and maintainability
📝 chore(vector_store.py): refactor code to improve readability and maintainability
📝 chore(run.py): update return type hint for build_sorted_vertices function
2023-09-22 10:59:53 -03:00
Gabriel Luiz Freitas Almeida
bea1328a3e 🐛 fix(base.py): add __setstate__ method to Edge class to properly set state when unpickling
🐛 fix(base.py): add reset method to Edge class to reset source and target params when needed
🐛 fix(base.py): add __setstate__ method to Graph class to properly set state when unpickling
🐛 fix(base.py): add __eq__ method to Graph class to compare graphs based on their string representation
🐛 fix(types.py): add __getstate__ and __setstate__ methods to AgentVertex class to properly set and get state when pickling and unpickling
🐛 fix(types.py): add __getstate__ and __setstate__ methods to ToolVertex class to properly set and get state when pickling and unpickling
🐛 fix(types.py): add __getstate__ and __setstate__ methods to LLMVertex class to properly set and get state when pickling and unpickling
🐛 fix(types.py): add __getstate__ and __setstate__ methods to ToolkitVertex class to properly set and get state when pickling and unpickling
🐛 fix(types.py): add __getstate__ and __setstate__ methods to FileToolVertex class to properly set and get state when pickling and unpickling
🐛 fix(types.py): add __getstate__ and __setstate__ methods to DocumentLoaderVertex class to properly set and get state when pickling and unpickling
🐛 fix(types.py): add __getstate__ and __setstate__ methods to EmbeddingVertex class to properly set and get state when pickling and unpickling
🐛 fix(types.py): add __getstate__ and __setstate__ methods to VectorStoreVertex class to properly set and get state when pickling and unpickling
🐛 fix(types.py): add __getstate__ and __setstate__ methods to TextSplitterVertex class to properly set and get state when pickling and unpickling
 feat(types.py): add reset method to AgentVertex class to reset source and target params when needed
 feat(types.py): add reset method to ToolVertex class to reset source and target params when needed
 feat(types.py): add reset method to LLMVertex class to reset source and target params when needed
 feat(types.py):
2023-09-22 10:58:27 -03:00
Gabriel Luiz Freitas Almeida
2b10cfe96d 🐛 fix(base.py): add missing import statement for is_basic_type function
🐛 fix(base.py): add missing import statement for logger
🐛 fix(base.py): handle AttributeError when comparing Vertex objects for equality
🐛 fix(base.py): handle exception and log it when building node fails
🐛 fix(base.py): handle exception and log it when pickling built object fails
🐛 fix(base.py): reset params and rebuild built object when pickling built object fails
🐛 fix(base.py): handle exception and log it when pickling built object fails
🐛 fix(base.py): handle exception and log it when pickling built object fails
🐛 fix(base.py): handle exception and log it when pickling built object fails
🐛 fix(base.py): handle exception and log it when pickling built object fails
🐛 fix(base.py): handle exception and log it when pickling built object fails
🐛 fix(base.py): handle exception and log it when pickling built object fails
🐛 fix(base.py): handle exception and log it when pickling built object fails
🐛 fix(base.py): handle exception and log it when pickling built object fails
🐛 fix(base.py): handle exception and log it when pickling built object fails
🐛 fix(base.py): handle exception and log it when pickling built object fails
🐛 fix(base.py): handle exception and log it when pickling built object fails
🐛 fix(base.py): handle exception and log it when pickling built object fails
🐛 fix(base.py): handle exception and log it when pickling built object fails
🐛 fix(base.py): handle exception and log it when pickling built object fails
🐛 fix(base.py): handle exception and log it when pickling built object fails
🐛 fix(base.py): handle exception and log it when pickling built object fails
🐛 fix(base.py): handle exception and log it when pickling built object fails
🐛 fix(base.py): handle exception and log it when pickling built object fails
🐛 fix(base.py): handle exception and log it when pickling built object fails
🐛 fix(base.py): handle exception and log it when pickling built object fails
🐛 fix(base.py): handle exception and log it when pickling built object
2023-09-22 10:54:30 -03:00