📝 (log.py): add LoggableType to define the type of log messages in the schema
📝 (schema.py): import LoggableType from log.py to use in defining the type of log messages in the Log class
📝 (service.py): add asyncio functionality to log_worker method for processing logs asynchronously
📝 (service.py): add start, flush, and stop methods to manage the logging worker task asynchronously
📝 (service.py): change initialize_tracers method to be asynchronous and start the logging worker
📝 (service.py): add async functionality to end method to stop the logging worker
📝 (service.py): change add_log method to be asynchronous and use asyncio to start the logging worker if not running
📝 (service.py): change contextmanager to asynccontextmanager for trace_context method to handle asynchronous operations
✨ (VectorStore-RAG-Flows.json): Update class inheritance to LCEmbeddingsModel for OpenAIEmbeddingsComponent to align with changes in the codebase
📝 (VectorStore-RAG-Flows.json): Add trace_type attribute to PromptComponent class for better tracking and identification of components
📝 (VectorStore-RAG-Flows.json): update import path for LCEmbeddingsModel in OpenAIEmbeddingsComponent to match new file structure and improve code organization.
🔧 (chat.py): Remove redundant setting of run_id in retrieve_vertices_order function
🔧 (chat.py): Remove setting of run_id in build_vertex function and add end_all_traces method call when no next_runnable_vertices
🔧 (base.py): Add logic to set run_name based on flow name and flow id, and end all traces with metadata in Graph class
This commit adds a new service called TracingService and a corresponding factory class called TracingServiceFactory. The TracingService is responsible for handling tracing functionality, while the TracingServiceFactory is used to create instances of the TracingService. This addition enables the application to support tracing capabilities.
Note: The commit message has been generated based on the provided code changes and recent commits.
* optimize multi-arch docker build on x86
* test
* test
* test
* test
* separate build
* separate build
* fix package versions
* also fixes the release
* orjson
* orjson
* fix cryptography
* fix duckdb
* all
* all
* fix
* use provenance
* fix error on port frontend variable .env
* ✨ (constants.ts, vite.config.mts): add support for configurable LANGFLOW_HOST environment variable to allow dynamic backend URL configuration
* 🔧 (constants.ts, vite.config.mts): consolidate backend URL configuration into a single environment variable
This PR adds a new way of building Langflow Components, adds the
possibility of defining more than one output and adds the `io` module
that exposes many types of inputs.
The components that inherit from `CustomComponent` should still work.
Components now mostly output `Data`(former `Record`) and `Message`.
`MessageInput` passes a `Message` object to the component while
`TextInput` gets the `.text` from the `Message` and passes it as a
string.