This commit updates the `Graph.from_payload` method in the `endpoints.py` file to include the `flow_name` parameter. This change ensures that the `Graph` object is created with the correct flow name, which is necessary for proper functionality. By passing the `flow.name` value to the `Graph.from_payload` method, we ensure that the `graph` object is initialized correctly with the associated flow name. This improvement enhances the accuracy and reliability of the code.
The welcome panel in the `__main__.py` module has been updated to include information about telemetry data collection. This change adds a new line of text explaining that anonymous usage data is collected to improve Langflow, and provides instructions on how to opt-out by setting the `DO_NOT_TRACK` environment variable to `true`.
The `PlaygroundPayload` class in the `telemetry/schema.py` module has been updated to make the `componentCount` field nullable by setting its default value to `None`. This change allows for more flexibility when handling the `componentCount` data in the telemetry service.
This commit adds the `components_count` variable to the `retrieve_vertices_order` function in `chat.py`. The `components_count` variable is initialized as `None` and will be used for further processing within the function.
This commit adds the `TelemetryService` class and updates the code in `endpoints.py` to log the run time of package execution. The `TelemetryService` is responsible for handling telemetry-related functionality, including logging package run time. This addition enables the application to collect and analyze telemetry data, providing insights into the performance of package execution.
The code changes introduce the `TelemetryService` schema and service in the `langflow.services.telemetry` module. This addition enables the application to collect and analyze telemetry data.
The VersionPayload class in the TelemetryService module has been updated to include the arch field for architecture information and the autoLogin field to indicate whether auto login is enabled. This change enhances the telemetry data collected by the application.
The code changes in `main.py` add the `get_telemetry_service()` function call to start telemetry service. This change enables the application to collect and analyze telemetry data.
This commit adds the `TelemetryService` class and `TelemetryServiceFactory` class to the `langflow.services.telemetry` module. The `TelemetryService` is responsible for handling telemetry-related functionality, while the `TelemetryServiceFactory` is used to create instances of the `TelemetryService` class. This addition enables the application to collect and analyze telemetry data.
📝 (base.py): add new attributes backend_only and do_not_track with their respective descriptions
📝 (base.py): add telemetry_base_url attribute with default value
The get_version endpoint in the API router has been updated to use the get_version_info utility function from langflow.utils.version. This change improves code organization and maintainability by centralizing the version retrieval logic.
This commit adds exception handling and trace ending functionality to the Graph class in the `base.py` file. It imports the `traceback` module and adds a try-except block to catch any exceptions that occur during graph execution. If an exception is caught, it logs the exception and ends all traces with the error message. Finally, it ensures that all traces are ended regardless of whether an exception occurred or not. This change improves the robustness and error handling of the Graph class.
This commit updates the GenericNode component and its related hooks to handle the component type. The code changes in the index.tsx file of the GenericNode directory include modifying the updateNodeCode function to accept an additional "type" parameter. The handleNodeClass function in the use-handle-node-class.tsx file has also been updated to handle the "type" parameter. These changes ensure that the GenericNode component can correctly handle different types of components and update the node code accordingly.
This commit adds the CustomComponentResponse model to the schemas.py file, allowing the custom_component endpoint to return a structured response. The custom_component endpoint in the endpoints.py file has been updated to include the response_model parameter, specifying the CustomComponentResponse model. This ensures that the endpoint returns the built_frontend_node along with the type of the component_instance. These changes improve the consistency and clarity of the API response.
The build_config parameter in the update_build_config method of the AgentComponent class has been updated to accept a field_name parameter of type str instead of Text | None. This change improves the clarity and consistency of the code.
The code changes in `directory_reader.py` introduce a check to skip files that are located in the `deactivated` folder. This improves the efficiency of the directory reading process by excluding unnecessary files.