diff --git a/docs/openapi/openapi.json b/docs/openapi/openapi.json index 34869503c7..0a057000c1 100644 --- a/docs/openapi/openapi.json +++ b/docs/openapi/openapi.json @@ -25,6 +25,22 @@ "title": "Flow Id" } }, + { + "name": "data", + "in": "query", + "required": false, + "schema": { + "anyOf": [ + { + "$ref": "#/components/schemas/FlowDataRequest" + }, + { + "type": "null" + } + ], + "title": "Data" + } + }, { "name": "stop_component_id", "in": "query", @@ -58,23 +74,6 @@ } } ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/FlowDataRequest" - }, - { - "type": "null" - } - ], - "title": "Data" - } - } - } - }, "responses": { "200": { "description": "Successful Response", @@ -604,7 +603,7 @@ "Base" ], "summary": "Simplified Run Flow", - "description": "Executes a specified flow by ID with support for streaming and telemetry.

This endpoint executes a flow identified by ID or name, with options for streaming the response
and tracking execution metrics. It handles both streaming and non-streaming execution modes.

Args:
background_tasks (BackgroundTasks): FastAPI background task manager
flow (FlowRead | None): The flow to execute, loaded via dependency
input_request (SimplifiedAPIRequest | None): Input parameters for the flow
stream (bool): Whether to stream the response
api_key_user (UserRead): Authenticated user from API key
context (dict | None): Optional context to pass to the flow
http_request (Request): The incoming HTTP request for extracting global variables

Returns:
Union[StreamingResponse, RunResponse]: Either a streaming response for real-time results
or a RunResponse with the complete execution results

Raises:
HTTPException: For flow not found (404) or invalid input (400)
APIException: For internal execution errors (500)

Notes:
- Supports both streaming and non-streaming execution modes
- Tracks execution time and success/failure via telemetry
- Handles graceful client disconnection in streaming mode
- Provides detailed error handling with appropriate HTTP status codes
- Extracts global variables from HTTP headers with prefix X-LANGFLOW-GLOBAL-VAR-*
- Merges extracted variables with the context parameter as \"request_variables\"
- In streaming mode, uses EventManager to handle events:
- \"add_message\": New messages during execution
- \"token\": Individual tokens during streaming
- \"end\": Final execution result", + "description": "Executes a specified flow by ID with support for streaming and telemetry.

This endpoint executes a flow identified by ID or name, with options for streaming the response
and tracking execution metrics. It handles both streaming and non-streaming execution modes.

Args:
background_tasks (BackgroundTasks): FastAPI background task manager
flow (FlowRead | None): The flow to execute, loaded via dependency
input_request (SimplifiedAPIRequest | None): Input parameters for the flow
stream (bool): Whether to stream the response
api_key_user (UserRead): Authenticated user from API key
request (Request): The incoming HTTP request

Returns:
Union[StreamingResponse, RunResponse]: Either a streaming response for real-time results
or a RunResponse with the complete execution results

Raises:
HTTPException: For flow not found (404) or invalid input (400)
APIException: For internal execution errors (500)

Notes:
- Supports both streaming and non-streaming execution modes
- Tracks execution time and success/failure via telemetry
- Handles graceful client disconnection in streaming mode
- Provides detailed error handling with appropriate HTTP status codes
- In streaming mode, uses EventManager to handle events:
- \"add_message\": New messages during execution
- \"token\": Individual tokens during streaming
- \"end\": Final execution result", "operationId": "simplified_run_flow_api_v1_run__flow_id_or_name__post", "security": [ { @@ -659,7 +658,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Body_simplified_run_flow_api_v1_run__flow_id_or_name__post" + "anyOf": [ + { + "$ref": "#/components/schemas/SimplifiedAPIRequest" + }, + { + "type": "null" + } + ], + "title": "Input Request" } } } @@ -692,7 +699,7 @@ "Base" ], "summary": "Webhook Run Flow", - "description": "Run a flow using a webhook request.

Args:
flow_id_or_name (str): The flow ID or endpoint name.
flow (Flow): The flow to be executed.
request (Request): The incoming HTTP request.
background_tasks (BackgroundTasks): The background tasks manager.

Returns:
dict: A dictionary containing the status of the task.

Raises:
HTTPException: If the flow is not found or if there is an error processing the request.", + "description": "Run a flow using a webhook request.

Args:
flow (Flow, optional): The flow to be executed. Defaults to Depends(get_flow_by_id).
user (User): The flow user.
request (Request): The incoming HTTP request.
background_tasks (BackgroundTasks): The background tasks manager.

Returns:
dict: A dictionary containing the status of the task.

Raises:
HTTPException: If the flow is not found or if there is an error processing the request.", "operationId": "webhook_run_flow_api_v1_webhook__flow_id_or_name__post", "parameters": [ { @@ -1943,7 +1950,7 @@ } }, { - "$ref": "#/components/schemas/Page_FlowRead_-Output" + "$ref": "#/components/schemas/Page_FlowRead_" }, { "type": "array", @@ -3841,7 +3848,7 @@ "schema": { "type": "array", "items": { - "$ref": "#/components/schemas/MessageResponse-Output" + "$ref": "#/components/schemas/MessageResponse" }, "title": "Response Get Messages Api V1 Monitor Messages Get" } @@ -4021,7 +4028,7 @@ "schema": { "type": "array", "items": { - "$ref": "#/components/schemas/MessageResponse-Output" + "$ref": "#/components/schemas/MessageResponse" }, "title": "Response Update Session Id Api V1 Monitor Messages Session Old Session Id Patch" } @@ -4282,10 +4289,10 @@ "schema": { "anyOf": [ { - "$ref": "#/components/schemas/FolderWithPaginatedFlows-Output" + "$ref": "#/components/schemas/FolderWithPaginatedFlows" }, { - "$ref": "#/components/schemas/FolderReadWithFlows-Output" + "$ref": "#/components/schemas/FolderReadWithFlows" } ], "title": "Response Read Folder Redirect Api V1 Folders Folder Id Get" @@ -4637,10 +4644,10 @@ "schema": { "anyOf": [ { - "$ref": "#/components/schemas/FolderWithPaginatedFlows-Output" + "$ref": "#/components/schemas/FolderWithPaginatedFlows" }, { - "$ref": "#/components/schemas/FolderReadWithFlows-Output" + "$ref": "#/components/schemas/FolderReadWithFlows" } ], "title": "Response Read Project Api V1 Projects Project Id Get" @@ -4893,7 +4900,7 @@ "application/json": { "schema": { "items": { - "$ref": "#/components/schemas/GraphDumpResponse-Output" + "$ref": "#/components/schemas/GraphDump" }, "type": "array", "title": "Response Get Starter Projects Api V1 Starter Projects Get" @@ -5770,7 +5777,7 @@ "application/json": { "schema": { "items": { - "$ref": "#/components/schemas/File" + "$ref": "#/components/schemas/langflow__services__database__models__file__model__File" }, "type": "array", "title": "Response List Files Api V2 Files Get" @@ -5887,7 +5894,7 @@ "application/json": { "schema": { "items": { - "$ref": "#/components/schemas/File" + "$ref": "#/components/schemas/langflow__services__database__models__file__model__File" }, "type": "array", "title": "Response List Files Api V2 Files Get" @@ -7292,33 +7299,6 @@ ], "title": "Body_login_to_get_access_token_api_v1_login_post" }, - "Body_simplified_run_flow_api_v1_run__flow_id_or_name__post": { - "properties": { - "input_request": { - "anyOf": [ - { - "$ref": "#/components/schemas/SimplifiedAPIRequest" - }, - { - "type": "null" - } - ] - }, - "context": { - "anyOf": [ - { - "type": "object" - }, - { - "type": "null" - } - ], - "title": "Context" - } - }, - "type": "object", - "title": "Body_simplified_run_flow_api_v1_run__flow_id_or_name__post" - }, "Body_upload_file_api_v1_files_upload__flow_id__post": { "properties": { "file": { @@ -7506,7 +7486,7 @@ }, "files": { "items": { - "$ref": "#/components/schemas/lfx__utils__schemas__File" + "$ref": "#/components/schemas/langflow__utils__schemas__File" }, "type": "array", "title": "Files", @@ -7538,7 +7518,7 @@ ], "title": "Code" }, - "CodeContent-Output": { + "CodeContent": { "type": "object" }, "CodeValidationResponse": { @@ -7613,21 +7593,9 @@ ], "title": "Event Delivery" }, - "webhook_auth_enable": { - "type": "boolean", - "title": "Webhook Auth Enable" - }, "voice_mode_available": { "type": "boolean", "title": "Voice Mode Available" - }, - "default_folder_name": { - "type": "string", - "title": "Default Folder Name" - }, - "hide_getting_started_progress": { - "type": "boolean", - "title": "Hide Getting Started Progress" } }, "type": "object", @@ -7644,14 +7612,11 @@ "public_flow_cleanup_interval", "public_flow_expiration", "event_delivery", - "webhook_auth_enable", - "voice_mode_available", - "default_folder_name", - "hide_getting_started_progress" + "voice_mode_available" ], "title": "ConfigResponse" }, - "ContentBlock-Output": { + "ContentBlock": { "properties": { "title": { "type": "string", @@ -7822,7 +7787,48 @@ ], "title": "DownloadComponentResponse" }, - "ErrorContent-Output": { + "EdgeData": { + "properties": { + "source": { + "type": "string", + "title": "Source" + }, + "target": { + "type": "string", + "title": "Target" + }, + "data": { + "$ref": "#/components/schemas/EdgeDataDetails" + } + }, + "type": "object", + "title": "EdgeData" + }, + "EdgeDataDetails": { + "properties": { + "sourceHandle": { + "$ref": "#/components/schemas/SourceHandleDict" + }, + "targetHandle": { + "anyOf": [ + { + "$ref": "#/components/schemas/TargetHandleDict" + }, + { + "$ref": "#/components/schemas/LoopTargetHandleDict" + } + ], + "title": "Targethandle" + } + }, + "type": "object", + "required": [ + "sourceHandle", + "targetHandle" + ], + "title": "EdgeDataDetails" + }, + "ErrorContent": { "type": "object" }, "ErrorLog": { @@ -7864,61 +7870,6 @@ "type": "object", "title": "FeatureFlags" }, - "File": { - "properties": { - "id": { - "type": "string", - "format": "uuid", - "title": "Id" - }, - "user_id": { - "type": "string", - "format": "uuid", - "title": "User Id" - }, - "name": { - "type": "string", - "title": "Name" - }, - "path": { - "type": "string", - "title": "Path" - }, - "size": { - "type": "integer", - "title": "Size" - }, - "provider": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ], - "title": "Provider" - }, - "created_at": { - "type": "string", - "format": "date-time", - "title": "Created At" - }, - "updated_at": { - "type": "string", - "format": "date-time", - "title": "Updated At" - } - }, - "type": "object", - "required": [ - "user_id", - "name", - "path", - "size" - ], - "title": "File" - }, "Flow": { "properties": { "name": { @@ -9022,70 +8973,7 @@ ], "title": "FolderRead" }, - "FolderReadWithFlows-Input": { - "properties": { - "name": { - "type": "string", - "title": "Name" - }, - "description": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ], - "title": "Description" - }, - "auth_settings": { - "anyOf": [ - { - "type": "object" - }, - { - "type": "null" - } - ], - "title": "Auth Settings", - "description": "Authentication settings for the folder/project" - }, - "id": { - "type": "string", - "format": "uuid", - "title": "Id" - }, - "parent_id": { - "anyOf": [ - { - "type": "string", - "format": "uuid" - }, - { - "type": "null" - } - ], - "title": "Parent Id" - }, - "flows": { - "items": { - "$ref": "#/components/schemas/FlowRead" - }, - "type": "array", - "title": "Flows", - "default": [] - } - }, - "type": "object", - "required": [ - "name", - "id", - "parent_id" - ], - "title": "FolderReadWithFlows" - }, - "FolderReadWithFlows-Output": { + "FolderReadWithFlows": { "properties": { "name": { "type": "string", @@ -9215,29 +9103,13 @@ "type": "object", "title": "FolderUpdate" }, - "FolderWithPaginatedFlows-Input": { + "FolderWithPaginatedFlows": { "properties": { "folder": { "$ref": "#/components/schemas/FolderRead" }, "flows": { - "$ref": "#/components/schemas/Page_Flow_-Input" - } - }, - "type": "object", - "required": [ - "folder", - "flows" - ], - "title": "FolderWithPaginatedFlows" - }, - "FolderWithPaginatedFlows-Output": { - "properties": { - "folder": { - "$ref": "#/components/schemas/FolderRead" - }, - "flows": { - "$ref": "#/components/schemas/Page_Flow_-Output" + "$ref": "#/components/schemas/Page_Flow_" } }, "type": "object", @@ -9699,27 +9571,20 @@ "properties": { "nodes": { "items": { - "type": "object" + "$ref": "#/components/schemas/NodeData" }, "type": "array", "title": "Nodes" }, "edges": { "items": { - "type": "object" + "$ref": "#/components/schemas/EdgeData" }, "type": "array", "title": "Edges" }, "viewport": { - "anyOf": [ - { - "$ref": "#/components/schemas/ViewPort" - }, - { - "type": "null" - } - ] + "$ref": "#/components/schemas/ViewPort" } }, "type": "object", @@ -9729,117 +9594,30 @@ ], "title": "GraphData" }, - "GraphDumpResponse-Input": { + "GraphDump": { "properties": { "data": { "$ref": "#/components/schemas/GraphData" }, "is_component": { - "anyOf": [ - { - "type": "boolean" - }, - { - "type": "null" - } - ], + "type": "boolean", "title": "Is Component" }, "name": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ], + "type": "string", "title": "Name" }, "description": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ], + "type": "string", "title": "Description" }, "endpoint_name": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ], + "type": "string", "title": "Endpoint Name" } }, "type": "object", - "required": [ - "data" - ], - "title": "GraphDumpResponse" - }, - "GraphDumpResponse-Output": { - "properties": { - "data": { - "$ref": "#/components/schemas/GraphData" - }, - "is_component": { - "anyOf": [ - { - "type": "boolean" - }, - { - "type": "null" - } - ], - "title": "Is Component" - }, - "name": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ], - "title": "Name" - }, - "description": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ], - "title": "Description" - }, - "endpoint_name": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ], - "title": "Endpoint Name" - } - }, - "type": "object", - "required": [ - "data" - ], - "title": "GraphDumpResponse" + "title": "GraphDump" }, "HTTPValidationError": { "properties": { @@ -10003,7 +9781,7 @@ } ] }, - "JSONContent-Output": { + "JSONContent": { "type": "object" }, "KnowledgeBaseInfo": { @@ -10257,7 +10035,7 @@ ], "title": "ListComponentResponseModel" }, - "Log-Input": { + "Log": { "properties": { "name": { "type": "string", @@ -10288,7 +10066,7 @@ "$ref": "#/components/schemas/BaseModel" }, { - "$ref": "#/components/schemas/PlaygroundEvent-Input" + "$ref": "#/components/schemas/PlaygroundEvent" }, { "type": "null" @@ -10309,57 +10087,36 @@ ], "title": "Log" }, - "Log-Output": { + "LoopTargetHandleDict": { "properties": { + "dataType": { + "type": "string", + "title": "Datatype" + }, + "id": { + "type": "string", + "title": "Id" + }, "name": { "type": "string", "title": "Name" }, - "message": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "object" - }, - { - "items": {}, - "type": "array" - }, - { - "type": "integer" - }, - { - "type": "number" - }, - { - "type": "boolean" - }, - { - "$ref": "#/components/schemas/BaseModel" - }, - { - "$ref": "#/components/schemas/PlaygroundEvent-Output" - }, - { - "type": "null" - } - ], - "title": "Message" - }, - "type": { - "type": "string", - "title": "Type" + "output_types": { + "items": { + "type": "string" + }, + "type": "array", + "title": "Output Types" } }, "type": "object", "required": [ + "dataType", + "id", "name", - "message", - "type" + "output_types" ], - "title": "Log" + "title": "LoopTargetHandleDict" }, "MCPInstallRequest": { "properties": { @@ -10498,7 +10255,7 @@ "title": "MCPSettings", "description": "Model representing MCP settings for a flow." }, - "MediaContent-Output": { + "MediaContent": { "type": "object" }, "MessageRead": { @@ -10542,7 +10299,7 @@ "default": false }, "properties": { - "$ref": "#/components/schemas/langflow__schema__properties__Properties" + "$ref": "#/components/schemas/Properties" }, "category": { "type": "string", @@ -10551,7 +10308,7 @@ }, "content_blocks": { "items": { - "$ref": "#/components/schemas/ContentBlock-Output" + "$ref": "#/components/schemas/ContentBlock" }, "type": "array", "title": "Content Blocks" @@ -10585,7 +10342,7 @@ ], "title": "MessageRead" }, - "MessageResponse-Input": { + "MessageResponse": { "properties": { "id": { "anyOf": [ @@ -10661,7 +10418,7 @@ "properties": { "anyOf": [ { - "$ref": "#/components/schemas/langflow__schema__properties__Properties" + "$ref": "#/components/schemas/Properties" }, { "type": "null" @@ -10683,126 +10440,7 @@ "anyOf": [ { "items": { - "$ref": "#/components/schemas/lfx__schema__content_block__ContentBlock-Input" - }, - "type": "array" - }, - { - "type": "null" - } - ], - "title": "Content Blocks" - } - }, - "type": "object", - "required": [ - "sender", - "sender_name", - "session_id", - "text", - "edit" - ], - "title": "MessageResponse" - }, - "MessageResponse-Output": { - "properties": { - "id": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "string", - "format": "uuid" - }, - { - "type": "null" - } - ], - "title": "Id" - }, - "flow_id": { - "anyOf": [ - { - "type": "string", - "format": "uuid" - }, - { - "type": "null" - } - ], - "title": "Flow Id" - }, - "timestamp": { - "type": "string", - "format": "date-time", - "title": "Timestamp" - }, - "sender": { - "type": "string", - "title": "Sender" - }, - "sender_name": { - "type": "string", - "title": "Sender Name" - }, - "session_id": { - "type": "string", - "title": "Session Id" - }, - "text": { - "type": "string", - "title": "Text" - }, - "files": { - "items": { - "type": "string" - }, - "type": "array", - "title": "Files", - "default": [] - }, - "edit": { - "type": "boolean", - "title": "Edit" - }, - "duration": { - "anyOf": [ - { - "type": "number" - }, - { - "type": "null" - } - ], - "title": "Duration" - }, - "properties": { - "anyOf": [ - { - "$ref": "#/components/schemas/langflow__schema__properties__Properties" - }, - { - "type": "null" - } - ] - }, - "category": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ], - "title": "Category" - }, - "content_blocks": { - "anyOf": [ - { - "items": { - "$ref": "#/components/schemas/ContentBlock-Output" + "$ref": "#/components/schemas/ContentBlock" }, "type": "array" }, @@ -10908,7 +10546,7 @@ "properties": { "anyOf": [ { - "$ref": "#/components/schemas/langflow__schema__properties__Properties" + "$ref": "#/components/schemas/Properties" }, { "type": "null" @@ -10919,6 +10557,61 @@ "type": "object", "title": "MessageUpdate" }, + "NodeData": { + "properties": { + "id": { + "type": "string", + "title": "Id" + }, + "data": { + "type": "object", + "title": "Data" + }, + "dragging": { + "type": "boolean", + "title": "Dragging" + }, + "height": { + "type": "integer", + "title": "Height" + }, + "width": { + "type": "integer", + "title": "Width" + }, + "position": { + "$ref": "#/components/schemas/Position" + }, + "positionAbsolute": { + "$ref": "#/components/schemas/Position" + }, + "selected": { + "type": "boolean", + "title": "Selected" + }, + "parent_node_id": { + "type": "string", + "title": "Parent Node Id" + }, + "type": { + "$ref": "#/components/schemas/NodeTypeEnum" + } + }, + "type": "object", + "required": [ + "id", + "data" + ], + "title": "NodeData" + }, + "NodeTypeEnum": { + "type": "string", + "enum": [ + "noteNode", + "genericNode" + ], + "title": "NodeTypeEnum" + }, "OpenAIResponsesRequest": { "properties": { "model": { @@ -11164,7 +10857,7 @@ ], "title": "OutputValue" }, - "Page_FlowRead_-Input": { + "Page_FlowRead_": { "properties": { "items": { "items": { @@ -11204,87 +10897,7 @@ ], "title": "Page[FlowRead]" }, - "Page_FlowRead_-Output": { - "properties": { - "items": { - "items": { - "$ref": "#/components/schemas/FlowRead" - }, - "type": "array", - "title": "Items" - }, - "total": { - "type": "integer", - "minimum": 0.0, - "title": "Total" - }, - "page": { - "type": "integer", - "minimum": 1.0, - "title": "Page" - }, - "size": { - "type": "integer", - "minimum": 1.0, - "title": "Size" - }, - "pages": { - "type": "integer", - "minimum": 0.0, - "title": "Pages" - } - }, - "type": "object", - "required": [ - "items", - "total", - "page", - "size", - "pages" - ], - "title": "Page[FlowRead]" - }, - "Page_Flow_-Input": { - "properties": { - "items": { - "items": { - "$ref": "#/components/schemas/Flow" - }, - "type": "array", - "title": "Items" - }, - "total": { - "type": "integer", - "minimum": 0.0, - "title": "Total" - }, - "page": { - "type": "integer", - "minimum": 1.0, - "title": "Page" - }, - "size": { - "type": "integer", - "minimum": 1.0, - "title": "Size" - }, - "pages": { - "type": "integer", - "minimum": 0.0, - "title": "Pages" - } - }, - "type": "object", - "required": [ - "items", - "total", - "page", - "size", - "pages" - ], - "title": "Page[Flow]" - }, - "Page_Flow_-Output": { + "Page_Flow_": { "properties": { "items": { "items": { @@ -11328,7 +10941,7 @@ "properties": { "items": { "items": { - "$ref": "#/components/schemas/TransactionTable-Output" + "$ref": "#/components/schemas/TransactionTable" }, "type": "array", "title": "Items" @@ -11364,12 +10977,12 @@ ], "title": "Page[TransactionTable]" }, - "PlaygroundEvent-Input": { + "PlaygroundEvent": { "properties": { "properties": { "anyOf": [ { - "$ref": "#/components/schemas/langflow__schema__properties__Properties" + "$ref": "#/components/schemas/Properties" }, { "type": "null" @@ -11391,7 +11004,7 @@ "anyOf": [ { "items": { - "$ref": "#/components/schemas/lfx__schema__content_block__ContentBlock-Input" + "$ref": "#/components/schemas/ContentBlock" }, "type": "array" }, @@ -11461,102 +11074,23 @@ "type": "object", "title": "PlaygroundEvent" }, - "PlaygroundEvent-Output": { + "Position": { "properties": { - "properties": { - "anyOf": [ - { - "$ref": "#/components/schemas/langflow__schema__properties__Properties" - }, - { - "type": "null" - } - ] + "x": { + "type": "number", + "title": "X" }, - "sender_name": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ], - "title": "Sender Name" - }, - "content_blocks": { - "anyOf": [ - { - "items": { - "$ref": "#/components/schemas/ContentBlock-Output" - }, - "type": "array" - }, - { - "type": "null" - } - ], - "title": "Content Blocks" - }, - "format_type": { - "type": "string", - "enum": [ - "default", - "error", - "warning", - "info" - ], - "title": "Format Type", - "default": "default" - }, - "files": { - "anyOf": [ - { - "items": { - "type": "string" - }, - "type": "array" - }, - { - "type": "null" - } - ], - "title": "Files" - }, - "text": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ], - "title": "Text" - }, - "timestamp": { - "type": "string", - "title": "Timestamp" - }, - "id": { - "anyOf": [ - { - "type": "string", - "format": "uuid" - }, - { - "type": "string" - }, - { - "type": "null" - } - ], - "title": "Id" + "y": { + "type": "number", + "title": "Y" } }, - "additionalProperties": true, "type": "object", - "title": "PlaygroundEvent" + "required": [ + "x", + "y" + ], + "title": "Position" }, "PromptValidationResponse": { "properties": { @@ -11582,7 +11116,85 @@ ], "title": "PromptValidationResponse" }, - "ResultData-Input": { + "Properties": { + "properties": { + "text_color": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "title": "Text Color" + }, + "background_color": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "title": "Background Color" + }, + "edited": { + "type": "boolean", + "title": "Edited", + "default": false + }, + "source": { + "$ref": "#/components/schemas/Source" + }, + "icon": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "title": "Icon" + }, + "allow_markdown": { + "type": "boolean", + "title": "Allow Markdown", + "default": false + }, + "positive_feedback": { + "anyOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ], + "title": "Positive Feedback" + }, + "state": { + "type": "string", + "enum": [ + "partial", + "complete" + ], + "title": "State", + "default": "complete" + }, + "targets": { + "items": {}, + "type": "array", + "title": "Targets", + "default": [] + } + }, + "type": "object", + "title": "Properties" + }, + "ResultData": { "properties": { "results": { "anyOf": [ @@ -11698,210 +11310,10 @@ "type": "object", "title": "ResultData" }, - "ResultData-Output": { - "properties": { - "results": { - "anyOf": [ - {}, - { - "type": "null" - } - ], - "title": "Results" - }, - "artifacts": { - "anyOf": [ - {}, - { - "type": "null" - } - ], - "title": "Artifacts" - }, - "outputs": { - "anyOf": [ - { - "type": "object" - }, - { - "type": "null" - } - ], - "title": "Outputs" - }, - "logs": { - "anyOf": [ - { - "type": "object" - }, - { - "type": "null" - } - ], - "title": "Logs" - }, - "messages": { - "anyOf": [ - { - "items": { - "$ref": "#/components/schemas/ChatOutputResponse" - }, - "type": "array" - }, - { - "type": "null" - } - ], - "title": "Messages" - }, - "timedelta": { - "anyOf": [ - { - "type": "number" - }, - { - "type": "null" - } - ], - "title": "Timedelta" - }, - "duration": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ], - "title": "Duration" - }, - "component_display_name": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ], - "title": "Component Display Name" - }, - "component_id": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ], - "title": "Component Id" - }, - "used_frozen_result": { - "anyOf": [ - { - "type": "boolean" - }, - { - "type": "null" - } - ], - "title": "Used Frozen Result", - "default": false - } - }, - "type": "object", - "title": "ResultData" - }, - "ResultDataResponse-Input": { - "properties": { - "results": { - "anyOf": [ - {}, - { - "type": "null" - } - ], - "title": "Results" - }, - "outputs": { - "additionalProperties": { - "$ref": "#/components/schemas/OutputValue" - }, - "type": "object", - "title": "Outputs" - }, - "logs": { - "additionalProperties": { - "items": { - "$ref": "#/components/schemas/Log-Input" - }, - "type": "array" - }, - "type": "object", - "title": "Logs" - }, - "message": { - "anyOf": [ - {}, - { - "type": "null" - } - ], - "title": "Message" - }, - "artifacts": { - "anyOf": [ - {}, - { - "type": "null" - } - ], - "title": "Artifacts" - }, - "timedelta": { - "anyOf": [ - { - "type": "number" - }, - { - "type": "null" - } - ], - "title": "Timedelta" - }, - "duration": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ], - "title": "Duration" - }, - "used_frozen_result": { - "anyOf": [ - { - "type": "boolean" - }, - { - "type": "null" - } - ], - "title": "Used Frozen Result", - "default": false - } - }, - "type": "object", - "title": "ResultDataResponse" - }, - "ResultDataResponse-Output": { + "ResultDataResponse": { "type": "object" }, - "RunOutputs-Input": { + "RunOutputs": { "properties": { "inputs": { "type": "object", @@ -11911,31 +11323,7 @@ "items": { "anyOf": [ { - "$ref": "#/components/schemas/ResultData-Input" - }, - { - "type": "null" - } - ] - }, - "type": "array", - "title": "Outputs" - } - }, - "type": "object", - "title": "RunOutputs" - }, - "RunOutputs-Output": { - "properties": { - "inputs": { - "type": "object", - "title": "Inputs" - }, - "outputs": { - "items": { - "anyOf": [ - { - "$ref": "#/components/schemas/ResultData-Output" + "$ref": "#/components/schemas/ResultData" }, { "type": "null" @@ -11955,7 +11343,7 @@ "anyOf": [ { "items": { - "$ref": "#/components/schemas/RunOutputs-Output" + "$ref": "#/components/schemas/RunOutputs" }, "type": "array" }, @@ -12073,6 +11461,87 @@ "type": "object", "title": "SimplifiedAPIRequest" }, + "Source": { + "properties": { + "id": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "title": "Id", + "description": "The id of the source component." + }, + "display_name": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "title": "Display Name", + "description": "The display name of the source component." + }, + "source": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "title": "Source", + "description": "The source of the message. Normally used to display the model name (e.g. 'gpt-4o')" + } + }, + "type": "object", + "title": "Source" + }, + "SourceHandleDict": { + "properties": { + "baseClasses": { + "items": { + "type": "string" + }, + "type": "array", + "title": "Baseclasses" + }, + "dataType": { + "type": "string", + "title": "Datatype" + }, + "id": { + "type": "string", + "title": "Id" + }, + "name": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "title": "Name" + }, + "output_types": { + "items": { + "type": "string" + }, + "type": "array", + "title": "Output Types" + } + }, + "type": "object", + "title": "SourceHandleDict" + }, "StoreComponentCreate": { "properties": { "name": { @@ -12204,6 +11673,44 @@ ], "title": "TagResponse" }, + "TargetHandleDict": { + "properties": { + "fieldName": { + "type": "string", + "title": "Fieldname" + }, + "id": { + "type": "string", + "title": "Id" + }, + "inputTypes": { + "anyOf": [ + { + "items": { + "type": "string" + }, + "type": "array" + }, + { + "type": "null" + } + ], + "title": "Inputtypes" + }, + "type": { + "type": "string", + "title": "Type" + } + }, + "type": "object", + "required": [ + "fieldName", + "id", + "inputTypes", + "type" + ], + "title": "TargetHandleDict" + }, "TaskStatusResponse": { "properties": { "status": { @@ -12227,7 +11734,7 @@ "title": "TaskStatusResponse", "description": "Task status response schema." }, - "TextContent-Output": { + "TextContent": { "type": "object" }, "Token": { @@ -12253,95 +11760,10 @@ ], "title": "Token" }, - "ToolContent-Output": { + "ToolContent": { "type": "object" }, - "TransactionTable-Input": { - "properties": { - "timestamp": { - "type": "string", - "format": "date-time", - "title": "Timestamp" - }, - "vertex_id": { - "type": "string", - "title": "Vertex Id" - }, - "target_id": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ], - "title": "Target Id" - }, - "inputs": { - "anyOf": [ - { - "type": "object" - }, - { - "type": "null" - } - ], - "title": "Inputs" - }, - "outputs": { - "anyOf": [ - { - "type": "object" - }, - { - "type": "null" - } - ], - "title": "Outputs" - }, - "status": { - "type": "string", - "title": "Status" - }, - "error": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ], - "title": "Error" - }, - "flow_id": { - "type": "string", - "format": "uuid", - "title": "Flow Id" - }, - "id": { - "anyOf": [ - { - "type": "string", - "format": "uuid" - }, - { - "type": "null" - } - ], - "title": "Id" - } - }, - "type": "object", - "required": [ - "vertex_id", - "status", - "flow_id" - ], - "title": "TransactionTable" - }, - "TransactionTable-Output": { + "TransactionTable": { "properties": { "timestamp": { "type": "string", @@ -13089,7 +12511,7 @@ "vertex_builds": { "additionalProperties": { "items": { - "$ref": "#/components/schemas/VertexBuildTable-Output" + "$ref": "#/components/schemas/VertexBuildTable" }, "type": "array" }, @@ -13194,81 +12616,7 @@ ], "title": "VertexBuildResponse" }, - "VertexBuildTable-Input": { - "properties": { - "timestamp": { - "type": "string", - "format": "date-time", - "title": "Timestamp" - }, - "id": { - "type": "string", - "title": "Id" - }, - "data": { - "anyOf": [ - { - "type": "object" - }, - { - "type": "null" - } - ], - "title": "Data" - }, - "artifacts": { - "anyOf": [ - { - "type": "object" - }, - { - "type": "null" - } - ], - "title": "Artifacts" - }, - "params": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ], - "title": "Params" - }, - "valid": { - "type": "boolean", - "title": "Valid" - }, - "flow_id": { - "type": "string", - "format": "uuid", - "title": "Flow Id" - }, - "build_id": { - "anyOf": [ - { - "type": "string", - "format": "uuid" - }, - { - "type": "null" - } - ], - "title": "Build Id" - } - }, - "type": "object", - "required": [ - "id", - "valid", - "flow_id" - ], - "title": "VertexBuildTable" - }, - "VertexBuildTable-Output": { + "VertexBuildTable": { "properties": { "timestamp": { "type": "string", @@ -13436,597 +12784,62 @@ "title": "UploadFileResponse", "description": "Upload file response schema." }, - "langflow__schema__content_block__ContentBlock-Input": { - "properties": { - "title": { - "type": "string", - "title": "Title" - }, - "contents": { - "items": { - "oneOf": [ - { - "$ref": "#/components/schemas/langflow__schema__content_types__ToolContent" - }, - { - "$ref": "#/components/schemas/lfx__schema__content_types__ErrorContent" - }, - { - "$ref": "#/components/schemas/langflow__schema__content_types__TextContent" - }, - { - "$ref": "#/components/schemas/lfx__schema__content_types__MediaContent" - }, - { - "$ref": "#/components/schemas/lfx__schema__content_types__CodeContent" - }, - { - "$ref": "#/components/schemas/langflow__schema__content_types__JSONContent" - } - ] - }, - "type": "array", - "title": "Contents" - }, - "allow_markdown": { - "type": "boolean", - "title": "Allow Markdown", - "default": true - }, - "media_url": { - "anyOf": [ - { - "items": { - "type": "string" - }, - "type": "array" - }, - { - "type": "null" - } - ], - "title": "Media Url" - } - }, - "type": "object", - "required": [ - "title", - "contents" - ], - "title": "ContentBlock", - "description": "A block of content that can contain different types of content." - }, - "langflow__schema__content_types__JSONContent": { - "properties": { - "type": { - "type": "string", - "const": "json", - "title": "Type", - "default": "json" - }, - "duration": { - "anyOf": [ - { - "type": "integer" - }, - { - "type": "null" - } - ], - "title": "Duration" - }, - "header": { - "anyOf": [ - { - "$ref": "#/components/schemas/HeaderDict" - }, - { - "type": "null" - } - ] - }, - "data": { - "type": "object", - "title": "Data" - } - }, - "type": "object", - "required": [ - "data" - ], - "title": "JSONContent", - "description": "Content type for JSON content." - }, - "langflow__schema__content_types__TextContent": { - "properties": { - "type": { - "type": "string", - "const": "text", - "title": "Type", - "default": "text" - }, - "duration": { - "anyOf": [ - { - "type": "integer" - }, - { - "type": "null" - } - ], - "title": "Duration" - }, - "header": { - "anyOf": [ - { - "$ref": "#/components/schemas/HeaderDict" - }, - { - "type": "null" - } - ] - }, - "text": { - "type": "string", - "title": "Text" - } - }, - "type": "object", - "required": [ - "text" - ], - "title": "TextContent", - "description": "Content type for simple text content." - }, - "langflow__schema__content_types__ToolContent": { - "properties": { - "type": { - "type": "string", - "const": "tool_use", - "title": "Type", - "default": "tool_use" - }, - "duration": { - "anyOf": [ - { - "type": "integer" - }, - { - "type": "null" - } - ], - "title": "Duration" - }, - "header": { - "anyOf": [ - { - "$ref": "#/components/schemas/HeaderDict" - }, - { - "type": "null" - } - ] - }, - "name": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ], - "title": "Name" - }, - "input": { - "type": "object", - "title": "Input" - }, - "output": { - "anyOf": [ - {}, - { - "type": "null" - } - ], - "title": "Output" - }, - "error": { - "anyOf": [ - {}, - { - "type": "null" - } - ], - "title": "Error" - } - }, - "type": "object", - "title": "ToolContent", - "description": "Content type for tool start content." - }, - "langflow__schema__properties__Properties": { - "properties": { - "text_color": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ], - "title": "Text Color" - }, - "background_color": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ], - "title": "Background Color" - }, - "edited": { - "type": "boolean", - "title": "Edited", - "default": false - }, - "source": { - "$ref": "#/components/schemas/langflow__schema__properties__Source" - }, - "icon": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ], - "title": "Icon" - }, - "allow_markdown": { - "type": "boolean", - "title": "Allow Markdown", - "default": false - }, - "positive_feedback": { - "anyOf": [ - { - "type": "boolean" - }, - { - "type": "null" - } - ], - "title": "Positive Feedback" - }, - "state": { - "type": "string", - "enum": [ - "partial", - "complete" - ], - "title": "State", - "default": "complete" - }, - "targets": { - "items": {}, - "type": "array", - "title": "Targets", - "default": [] - } - }, - "type": "object", - "title": "Properties" - }, - "langflow__schema__properties__Source": { + "langflow__services__database__models__file__model__File": { "properties": { "id": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ], - "title": "Id", - "description": "The id of the source component." - }, - "display_name": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ], - "title": "Display Name", - "description": "The display name of the source component." - }, - "source": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ], - "title": "Source", - "description": "The source of the message. Normally used to display the model name (e.g. 'gpt-4o')" - } - }, - "type": "object", - "title": "Source" - }, - "lfx__schema__content_block__ContentBlock-Input": { - "properties": { - "title": { "type": "string", - "title": "Title" + "format": "uuid", + "title": "Id" }, - "contents": { - "items": { - "oneOf": [ - { - "$ref": "#/components/schemas/langflow__schema__content_types__ToolContent" - }, - { - "$ref": "#/components/schemas/lfx__schema__content_types__ErrorContent" - }, - { - "$ref": "#/components/schemas/langflow__schema__content_types__TextContent" - }, - { - "$ref": "#/components/schemas/lfx__schema__content_types__MediaContent" - }, - { - "$ref": "#/components/schemas/lfx__schema__content_types__CodeContent" - }, - { - "$ref": "#/components/schemas/langflow__schema__content_types__JSONContent" - } - ] - }, - "type": "array", - "title": "Contents" + "user_id": { + "type": "string", + "format": "uuid", + "title": "User Id" }, - "allow_markdown": { - "type": "boolean", - "title": "Allow Markdown", - "default": true + "name": { + "type": "string", + "title": "Name" }, - "media_url": { + "path": { + "type": "string", + "title": "Path" + }, + "size": { + "type": "integer", + "title": "Size" + }, + "provider": { "anyOf": [ { - "items": { - "type": "string" - }, - "type": "array" + "type": "string" }, { "type": "null" } ], - "title": "Media Url" + "title": "Provider" + }, + "created_at": { + "type": "string", + "format": "date-time", + "title": "Created At" + }, + "updated_at": { + "type": "string", + "format": "date-time", + "title": "Updated At" } }, "type": "object", "required": [ - "title", - "contents" + "user_id", + "name", + "path", + "size" ], - "title": "ContentBlock", - "description": "A block of content that can contain different types of content." + "title": "File" }, - "lfx__schema__content_types__CodeContent": { - "properties": { - "type": { - "type": "string", - "const": "code", - "title": "Type", - "default": "code" - }, - "duration": { - "anyOf": [ - { - "type": "integer" - }, - { - "type": "null" - } - ], - "title": "Duration" - }, - "header": { - "anyOf": [ - { - "$ref": "#/components/schemas/HeaderDict" - }, - { - "type": "null" - } - ] - }, - "code": { - "type": "string", - "title": "Code" - }, - "language": { - "type": "string", - "title": "Language" - }, - "title": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ], - "title": "Title" - } - }, - "type": "object", - "required": [ - "code", - "language" - ], - "title": "CodeContent", - "description": "Content type for code snippets." - }, - "lfx__schema__content_types__ErrorContent": { - "properties": { - "type": { - "type": "string", - "const": "error", - "title": "Type", - "default": "error" - }, - "duration": { - "anyOf": [ - { - "type": "integer" - }, - { - "type": "null" - } - ], - "title": "Duration" - }, - "header": { - "anyOf": [ - { - "$ref": "#/components/schemas/HeaderDict" - }, - { - "type": "null" - } - ] - }, - "component": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ], - "title": "Component" - }, - "field": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ], - "title": "Field" - }, - "reason": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ], - "title": "Reason" - }, - "solution": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ], - "title": "Solution" - }, - "traceback": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ], - "title": "Traceback" - } - }, - "type": "object", - "title": "ErrorContent", - "description": "Content type for error messages." - }, - "lfx__schema__content_types__MediaContent": { - "properties": { - "type": { - "type": "string", - "const": "media", - "title": "Type", - "default": "media" - }, - "duration": { - "anyOf": [ - { - "type": "integer" - }, - { - "type": "null" - } - ], - "title": "Duration" - }, - "header": { - "anyOf": [ - { - "$ref": "#/components/schemas/HeaderDict" - }, - { - "type": "null" - } - ] - }, - "urls": { - "items": { - "type": "string" - }, - "type": "array", - "title": "Urls" - }, - "caption": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ], - "title": "Caption" - } - }, - "type": "object", - "required": [ - "urls" - ], - "title": "MediaContent", - "description": "Content type for media content." - }, - "lfx__utils__schemas__File": { + "langflow__utils__schemas__File": { "properties": { "path": { "type": "string", @@ -14073,4 +12886,4 @@ } } } -} \ No newline at end of file +}