diff --git a/agents-api/agents_api/autogen/openapi_model.py b/agents-api/agents_api/autogen/openapi_model.py index d8c1f6e39..5a39972e3 100644 --- a/agents-api/agents_api/autogen/openapi_model.py +++ b/agents-api/agents_api/autogen/openapi_model.py @@ -1,6 +1,6 @@ # generated by datamodel-codegen: # filename: openapi.yaml -# timestamp: 2024-06-21T03:13:24+00:00 +# timestamp: 2024-06-21T21:41:04+00:00 from __future__ import annotations @@ -841,7 +841,7 @@ class ImageUrl(BaseModel): """ URL or base64 data url (e.g. `data:image/jpeg;base64,`) """ - detail: Detail | None = "auto" + detail: Detail | None = "auto" # pytype: disable=annotation-type-mismatch """ image detail to feed into the model can be low | high | auto """ @@ -1160,17 +1160,23 @@ class Execution(BaseModel): class ExecutionTransition(BaseModel): id: UUID execution_id: UUID - created_at: AwareDatetime - outputs: Dict[str, Any] + type: Annotated[str, Field(pattern="^(finish|wait|error|step)$")] """ - Outputs from an Execution Transition + Execution Status """ from_: Annotated[List[str | int], Field(alias="from")] to: List[str | int] - type: Annotated[str, Field(pattern="^(finish|wait|error|step)$")] + task_token: str | None = None + outputs: Dict[str, Any] """ - Execution Status + Outputs from an Execution Transition + """ + metadata: Dict[str, Any] | None = None """ + (Optional) metadata + """ + created_at: AwareDatetime + updated_at: AwareDatetime | None = None class PromptWorkflowStep(BaseModel): diff --git a/agents-api/agents_api/common/utils/cozo.py b/agents-api/agents_api/common/utils/cozo.py index 67c98b924..db8f336f0 100644 --- a/agents-api/agents_api/common/utils/cozo.py +++ b/agents-api/agents_api/common/utils/cozo.py @@ -19,6 +19,6 @@ Client._process_mutate_data(_fake_client, data) ) -uuid_int_list_to_uuid4 = lambda data: UUID( - bytes=b"".join([i.to_bytes(1, "big") for i in data]) -) + +def uuid_int_list_to_uuid4(data): + return UUID(bytes=b"".join([i.to_bytes(1, "big") for i in data])) diff --git a/agents-api/agents_api/models/execution/create_execution_transition.py b/agents-api/agents_api/models/execution/create_execution_transition.py index 38ebd8a19..34e1e315e 100644 --- a/agents-api/agents_api/models/execution/create_execution_transition.py +++ b/agents-api/agents_api/models/execution/create_execution_transition.py @@ -16,6 +16,8 @@ def create_execution_transition_query( from_: tuple[str, int], to: tuple[str, int] | None, outputs: Dict[str, Any] | None, + task_token: str | None = None, + metadata: Dict[str, Any] = {}, ) -> tuple[str, dict]: # TODO: Check for agent in developer ID; Assert whether dev can access agent and by relation the task # TODO: Check for task and execution @@ -25,17 +27,19 @@ def create_execution_transition_query( query = """ { - ?[execution_id, transition_id, type, from, to, output] <- [[ + ?[execution_id, transition_id, type, from, to, output, task_token, metadata] <- [[ to_uuid($execution_id), to_uuid($transition_id), $type, $from, $to, $output, + $task_token, + $metadata, ]] :insert transitions { - execution_id, transition_id, type, from, to, output + execution_id, transition_id, type, from, to, output, task_token, metadata, } } """ @@ -48,5 +52,7 @@ def create_execution_transition_query( "from": from_, "to": to, "output": outputs, + "task_token": task_token, + "metadata": metadata, }, ) diff --git a/agents-api/agents_api/models/execution/get_execution_input.py b/agents-api/agents_api/models/execution/get_execution_input.py index f07871a8e..4646c9594 100644 --- a/agents-api/agents_api/models/execution/get_execution_input.py +++ b/agents-api/agents_api/models/execution/get_execution_input.py @@ -1,9 +1,9 @@ from uuid import UUID -from ..utils import cozo_query - from beartype import beartype +from ..utils import cozo_query + @cozo_query @beartype diff --git a/agents-api/agents_api/models/execution/get_execution_transition.py b/agents-api/agents_api/models/execution/get_execution_transition.py index 1e4842e0c..787913c79 100644 --- a/agents-api/agents_api/models/execution/get_execution_transition.py +++ b/agents-api/agents_api/models/execution/get_execution_transition.py @@ -19,7 +19,11 @@ def get_execution_transition_query( type, from, to, - output + output, + metadata, + task_token, + created_at, + updated_at, } } """ diff --git a/agents-api/migrations/migrate_1716939839_task_relations.py b/agents-api/migrations/migrate_1716939839_task_relations.py index 431ec8fc9..14a6037a1 100644 --- a/agents-api/migrations/migrate_1716939839_task_relations.py +++ b/agents-api/migrations/migrate_1716939839_task_relations.py @@ -60,6 +60,11 @@ def run(client, queries): from: (String, Int), to: (String, Int)?, output: Json, + + task_token: String? default null, + + # should store: an Activity Id, a Workflow Id, and optionally a Run Id. + metadata: Json default {}, created_at: Float default now(), updated_at: Float default now(), } diff --git a/agents-api/poetry.lock b/agents-api/poetry.lock index 49e8cf233..b2302ca02 100644 --- a/agents-api/poetry.lock +++ b/agents-api/poetry.lock @@ -2215,13 +2215,13 @@ typing-extensions = ">=4.0.0,<5.0.0" [[package]] name = "jupyter-ai" -version = "2.18.0" +version = "2.18.1" description = "A generative AI extension for JupyterLab" optional = false python-versions = ">=3.8" files = [ - {file = "jupyter_ai-2.18.0-py3-none-any.whl", hash = "sha256:6b7997f4f670b6f101f146c70b735542e61cc335bbbed0993d801bd5c5303258"}, - {file = "jupyter_ai-2.18.0.tar.gz", hash = "sha256:f90cd1e43e0f570d33b721e44a538c8399f5f49c7a0ab4b299586687ed1451a8"}, + {file = "jupyter_ai-2.18.1-py3-none-any.whl", hash = "sha256:f6eb5af6d5db3d74c69753ea27f2fa63b4fb66f52e00cd92fee95d12ea087691"}, + {file = "jupyter_ai-2.18.1.tar.gz", hash = "sha256:d2fecbbc7c25b020f6edef4335e48ed4ce5c8c429dfb7c7cd6a950a44ca3d537"}, ] [package.dependencies] @@ -2243,13 +2243,13 @@ test = ["coverage", "jupyter-server[test] (>=1.6,<3)", "pytest", "pytest-asyncio [[package]] name = "jupyter-ai-magics" -version = "2.18.0" +version = "2.18.1" description = "Jupyter AI magics Python package. Not published on NPM." optional = false python-versions = ">=3.8" files = [ - {file = "jupyter_ai_magics-2.18.0-py3-none-any.whl", hash = "sha256:c32ef167ff8b9abac1060bc4f8fda011a5adc71da8b0e119bf7be12b5e57afe9"}, - {file = "jupyter_ai_magics-2.18.0.tar.gz", hash = "sha256:95fb34b95a2ac7c5249d4052a598f9c0d2b70b0d189858a980ff2c74eaa15e01"}, + {file = "jupyter_ai_magics-2.18.1-py3-none-any.whl", hash = "sha256:54af7a833eae553c3bccf00eff845071826b0fb84b77c8238845f058541fd70d"}, + {file = "jupyter_ai_magics-2.18.1.tar.gz", hash = "sha256:df028a0566cd04555bd59dbdb5c08cb4eaf8150157a5ec176376390c73d4ac5b"}, ] [package.dependencies] @@ -2261,7 +2261,7 @@ langchain = ">=0.1.0,<0.2.0" typing-extensions = ">=4.5.0" [package.extras] -all = ["ai21", "boto3", "cohere (>4.40,<5)", "gpt4all", "huggingface-hub", "ipywidgets", "langchain-anthropic", "langchain-google-genai", "langchain-mistralai", "langchain-nvidia-ai-endpoints", "langchain-openai", "pillow", "qianfan", "together"] +all = ["ai21", "boto3", "gpt4all", "huggingface-hub", "ipywidgets", "langchain-anthropic", "langchain-cohere", "langchain-google-genai", "langchain-mistralai", "langchain-nvidia-ai-endpoints", "langchain-openai", "pillow", "qianfan", "together"] dev = ["pre-commit (>=3.3.3,<4)"] test = ["coverage", "pytest", "pytest-asyncio", "pytest-cov"] diff --git a/mock_openapi.yaml b/mock_openapi.yaml index 884d426fd..7085f3a97 100644 --- a/mock_openapi.yaml +++ b/mock_openapi.yaml @@ -1374,6 +1374,7 @@ components: metadata: type: object properties: {} + additionalProperties: true description: (Optional) metadata required: - id @@ -1410,6 +1411,7 @@ components: metadata: type: object properties: {} + additionalProperties: true description: Optional metadata instructions: oneOf: @@ -1505,6 +1507,7 @@ components: metadata: type: object properties: {} + additionalProperties: true description: Optional metadata render_templates: type: boolean @@ -1539,6 +1542,7 @@ components: metadata: type: object properties: {} + additionalProperties: true description: (Optional) metadata description: A valid request payload for creating a user CreateSessionRequest: @@ -1559,6 +1563,7 @@ components: metadata: type: object properties: {} + additionalProperties: true description: Optional metadata render_templates: type: boolean @@ -1608,6 +1613,7 @@ components: metadata: type: object properties: {} + additionalProperties: true description: (Optional) metadata instructions: oneOf: @@ -1630,6 +1636,7 @@ components: metadata: type: object properties: {} + additionalProperties: true description: Optional metadata token_budget: type: integer @@ -1659,6 +1666,7 @@ components: metadata: type: object properties: {} + additionalProperties: true description: Optional metadata instructions: oneOf: @@ -1685,6 +1693,7 @@ components: metadata: type: object properties: {} + additionalProperties: true description: Optional metadata description: A valid request payload for updating a user required: @@ -2322,6 +2331,7 @@ components: metadata: type: object properties: {} + additionalProperties: true description: optional metadata required: - title @@ -2347,6 +2357,7 @@ components: metadata: type: object properties: {} + additionalProperties: true description: Optional metadata required: - title @@ -2512,6 +2523,7 @@ components: metadata: type: object properties: {} + additionalProperties: true description: Optional metadata description: A request for patching a user PatchAgentRequest: @@ -2533,6 +2545,7 @@ components: metadata: type: object properties: {} + additionalProperties: true description: Optional metadata instructions: oneOf: @@ -2553,6 +2566,7 @@ components: metadata: type: object properties: {} + additionalProperties: true description: Optional metadata token_budget: type: integer @@ -2793,13 +2807,8 @@ components: execution_id: type: string format: uuid - created_at: - type: string - format: date-time - outputs: - type: object - additionalProperties: true - description: Outputs from an Execution Transition + type: + $ref: '#/components/schemas/TransitionType' from: type: array items: @@ -2815,8 +2824,25 @@ components: description: Canonical name of the workflow - type: integer description: Step index - type: - $ref: '#/components/schemas/TransitionType' + task_token: + type: string + default: null + nullable: true + outputs: + type: object + additionalProperties: true + description: Outputs from an Execution Transition + metadata: + type: object + properties: {} + additionalProperties: true + description: (Optional) metadata + created_at: + type: string + format: date-time + updated_at: + type: string + format: date-time required: - id - execution_id diff --git a/openapi.yaml b/openapi.yaml index b5dc23194..77e091fc2 100644 --- a/openapi.yaml +++ b/openapi.yaml @@ -1374,6 +1374,7 @@ components: metadata: type: object properties: {} + additionalProperties: true description: (Optional) metadata required: - id @@ -1410,6 +1411,7 @@ components: metadata: type: object properties: {} + additionalProperties: true description: Optional metadata instructions: oneOf: @@ -1505,6 +1507,7 @@ components: metadata: type: object properties: {} + additionalProperties: true description: Optional metadata render_templates: type: boolean @@ -1539,6 +1542,7 @@ components: metadata: type: object properties: {} + additionalProperties: true description: (Optional) metadata description: A valid request payload for creating a user CreateSessionRequest: @@ -1559,6 +1563,7 @@ components: metadata: type: object properties: {} + additionalProperties: true description: Optional metadata render_templates: type: boolean @@ -1608,6 +1613,7 @@ components: metadata: type: object properties: {} + additionalProperties: true description: (Optional) metadata instructions: oneOf: @@ -1630,6 +1636,7 @@ components: metadata: type: object properties: {} + additionalProperties: true description: Optional metadata token_budget: type: integer @@ -1659,6 +1666,7 @@ components: metadata: type: object properties: {} + additionalProperties: true description: Optional metadata instructions: oneOf: @@ -1685,6 +1693,7 @@ components: metadata: type: object properties: {} + additionalProperties: true description: Optional metadata description: A valid request payload for updating a user required: @@ -2322,6 +2331,7 @@ components: metadata: type: object properties: {} + additionalProperties: true description: optional metadata required: - title @@ -2347,6 +2357,7 @@ components: metadata: type: object properties: {} + additionalProperties: true description: Optional metadata required: - title @@ -2512,6 +2523,7 @@ components: metadata: type: object properties: {} + additionalProperties: true description: Optional metadata description: A request for patching a user PatchAgentRequest: @@ -2533,6 +2545,7 @@ components: metadata: type: object properties: {} + additionalProperties: true description: Optional metadata instructions: oneOf: @@ -2553,6 +2566,7 @@ components: metadata: type: object properties: {} + additionalProperties: true description: Optional metadata token_budget: type: integer @@ -2793,13 +2807,8 @@ components: execution_id: type: string format: uuid - created_at: - type: string - format: date-time - outputs: - type: object - additionalProperties: true - description: Outputs from an Execution Transition + type: + $ref: '#/components/schemas/TransitionType' from: type: array items: @@ -2815,8 +2824,25 @@ components: description: Canonical name of the workflow - type: integer description: Step index - type: - $ref: '#/components/schemas/TransitionType' + task_token: + type: string + default: null + nullable: true + outputs: + type: object + additionalProperties: true + description: Outputs from an Execution Transition + metadata: + type: object + properties: {} + additionalProperties: true + description: (Optional) metadata + created_at: + type: string + format: date-time + updated_at: + type: string + format: date-time required: - id - execution_id diff --git a/sdks/postman/collection.json b/sdks/postman/collection.json index dcec46ba4..b23fef1e9 100644 --- a/sdks/postman/collection.json +++ b/sdks/postman/collection.json @@ -612,7 +612,7 @@ "body": null }, "description": null, - "body": "{\n \"id\": \"id\",\n \"user_id\": \"user_id\",\n \"agent_id\": \"agent_id\",\n \"situation\": \"situation\",\n \"summary\": \"summary\",\n \"created_at\": \"2024-01-15T09:30:00Z\",\n \"updated_at\": \"2024-01-15T09:30:00Z\",\n \"render_templates\": true,\n \"token_budget\": 1,\n \"context_overflow\": \"context_overflow\"\n}", + "body": "{\n \"id\": \"id\",\n \"user_id\": \"user_id\",\n \"agent_id\": \"agent_id\",\n \"situation\": \"situation\",\n \"summary\": \"summary\",\n \"created_at\": \"2024-01-15T09:30:00Z\",\n \"updated_at\": \"2024-01-15T09:30:00Z\",\n \"metadata\": {\n \"metadata\": {\n \"key\": \"value\"\n }\n },\n \"render_templates\": true,\n \"token_budget\": 1,\n \"context_overflow\": \"context_overflow\"\n}", "_postman_previewlanguage": "json" } ] @@ -1486,7 +1486,7 @@ "body": null }, "description": null, - "body": "{\n \"name\": \"name\",\n \"about\": \"about\",\n \"created_at\": \"2024-01-15T09:30:00Z\",\n \"updated_at\": \"2024-01-15T09:30:00Z\",\n \"id\": \"id\"\n}", + "body": "{\n \"name\": \"name\",\n \"about\": \"about\",\n \"created_at\": \"2024-01-15T09:30:00Z\",\n \"updated_at\": \"2024-01-15T09:30:00Z\",\n \"id\": \"id\",\n \"metadata\": {\n \"metadata\": {\n \"key\": \"value\"\n }\n }\n}", "_postman_previewlanguage": "json" } ] @@ -1870,7 +1870,7 @@ "body": null }, "description": null, - "body": "{\n \"name\": \"name\",\n \"about\": \"about\",\n \"created_at\": \"2024-01-15T09:30:00Z\",\n \"updated_at\": \"2024-01-15T09:30:00Z\",\n \"id\": \"id\",\n \"default_settings\": {\n \"frequency_penalty\": 1.1,\n \"length_penalty\": 1.1,\n \"presence_penalty\": 1.1,\n \"repetition_penalty\": 1.1,\n \"temperature\": 0.75,\n \"top_p\": 1,\n \"min_p\": 0.01,\n \"preset\": \"problem_solving\"\n },\n \"model\": \"model\",\n \"instructions\": \"instructions\"\n}", + "body": "{\n \"name\": \"name\",\n \"about\": \"about\",\n \"created_at\": \"2024-01-15T09:30:00Z\",\n \"updated_at\": \"2024-01-15T09:30:00Z\",\n \"id\": \"id\",\n \"default_settings\": {\n \"frequency_penalty\": 1.1,\n \"length_penalty\": 1.1,\n \"presence_penalty\": 1.1,\n \"repetition_penalty\": 1.1,\n \"temperature\": 0.75,\n \"top_p\": 1,\n \"min_p\": 0.01,\n \"preset\": \"problem_solving\"\n },\n \"model\": \"model\",\n \"metadata\": {\n \"metadata\": {\n \"key\": \"value\"\n }\n },\n \"instructions\": \"instructions\"\n}", "_postman_previewlanguage": "json" } ] @@ -4096,7 +4096,7 @@ "body": null }, "description": "", - "body": "[\n {\n \"id\": \"id\",\n \"execution_id\": \"execution_id\",\n \"created_at\": \"2024-01-15T09:30:00Z\",\n \"outputs\": {\n \"outputs\": {\n \"key\": \"value\"\n }\n },\n \"from\": [\n {\n \"key\": \"value\"\n }\n ],\n \"to\": [\n {\n \"key\": \"value\"\n }\n ],\n \"type\": \"type\"\n }\n]", + "body": "[\n {\n \"id\": \"id\",\n \"execution_id\": \"execution_id\",\n \"type\": \"type\",\n \"from\": [\n {\n \"key\": \"value\"\n }\n ],\n \"to\": [\n {\n \"key\": \"value\"\n }\n ],\n \"task_token\": \"task_token\",\n \"outputs\": {\n \"outputs\": {\n \"key\": \"value\"\n }\n },\n \"metadata\": {\n \"metadata\": {\n \"key\": \"value\"\n }\n },\n \"created_at\": \"2024-01-15T09:30:00Z\",\n \"updated_at\": \"2024-01-15T09:30:00Z\"\n }\n]", "_postman_previewlanguage": "json" } ] diff --git a/sdks/python/julep/api/__init__.py b/sdks/python/julep/api/__init__.py index dcd41677c..1474b6085 100644 --- a/sdks/python/julep/api/__init__.py +++ b/sdks/python/julep/api/__init__.py @@ -5,7 +5,6 @@ AgentDefaultSettings, AgentDefaultSettingsPreset, AgentInstructions, - AgentMetadata, CelObject, ChatInputData, ChatInputDataToolChoice, @@ -29,18 +28,13 @@ ChatSettingsStop, CompletionUsage, CreateAgentRequestInstructions, - CreateAgentRequestMetadata, CreateDoc, CreateDocContent, - CreateDocMetadata, - CreateSessionRequestMetadata, CreateToolRequest, CreateToolRequestType, - CreateUserRequestMetadata, Doc, DocContent, DocIds, - DocMetadata, ErrorWorkflowStep, EvaluateWorkflowStep, Execution, @@ -84,15 +78,11 @@ NamedToolChoiceFunction, PartialFunctionDef, PatchAgentRequestInstructions, - PatchAgentRequestMetadata, - PatchSessionRequestMetadata, - PatchUserRequestMetadata, PromptWorkflowStep, ResourceCreatedResponse, ResourceDeletedResponse, ResourceUpdatedResponse, Session, - SessionMetadata, Suggestion, SuggestionTarget, Task, @@ -103,11 +93,7 @@ ToolType, TransitionType, UpdateAgentRequestInstructions, - UpdateAgentRequestMetadata, - UpdateSessionRequestMetadata, - UpdateUserRequestMetadata, User, - UserMetadata, WorkflowStep, YieldWorkflowStep, ) @@ -118,7 +104,6 @@ "AgentDefaultSettings", "AgentDefaultSettingsPreset", "AgentInstructions", - "AgentMetadata", "CelObject", "ChatInputData", "ChatInputDataToolChoice", @@ -142,18 +127,13 @@ "ChatSettingsStop", "CompletionUsage", "CreateAgentRequestInstructions", - "CreateAgentRequestMetadata", "CreateDoc", "CreateDocContent", - "CreateDocMetadata", - "CreateSessionRequestMetadata", "CreateToolRequest", "CreateToolRequestType", - "CreateUserRequestMetadata", "Doc", "DocContent", "DocIds", - "DocMetadata", "ErrorWorkflowStep", "EvaluateWorkflowStep", "Execution", @@ -198,15 +178,11 @@ "NamedToolChoiceFunction", "PartialFunctionDef", "PatchAgentRequestInstructions", - "PatchAgentRequestMetadata", - "PatchSessionRequestMetadata", - "PatchUserRequestMetadata", "PromptWorkflowStep", "ResourceCreatedResponse", "ResourceDeletedResponse", "ResourceUpdatedResponse", "Session", - "SessionMetadata", "Suggestion", "SuggestionTarget", "Task", @@ -217,11 +193,7 @@ "ToolType", "TransitionType", "UpdateAgentRequestInstructions", - "UpdateAgentRequestMetadata", - "UpdateSessionRequestMetadata", - "UpdateUserRequestMetadata", "User", - "UserMetadata", "WorkflowStep", "YieldWorkflowStep", ] diff --git a/sdks/python/julep/api/client.py b/sdks/python/julep/api/client.py index 610b3a2db..4316526e0 100644 --- a/sdks/python/julep/api/client.py +++ b/sdks/python/julep/api/client.py @@ -19,11 +19,8 @@ from .types.chat_settings_response_format import ChatSettingsResponseFormat from .types.chat_settings_stop import ChatSettingsStop from .types.create_agent_request_instructions import CreateAgentRequestInstructions -from .types.create_agent_request_metadata import CreateAgentRequestMetadata from .types.create_doc import CreateDoc -from .types.create_session_request_metadata import CreateSessionRequestMetadata from .types.create_tool_request import CreateToolRequest -from .types.create_user_request_metadata import CreateUserRequestMetadata from .types.execution import Execution from .types.execution_status import ExecutionStatus from .types.execution_transition import ExecutionTransition @@ -51,9 +48,6 @@ from .types.list_users_response import ListUsersResponse from .types.partial_function_def import PartialFunctionDef from .types.patch_agent_request_instructions import PatchAgentRequestInstructions -from .types.patch_agent_request_metadata import PatchAgentRequestMetadata -from .types.patch_session_request_metadata import PatchSessionRequestMetadata -from .types.patch_user_request_metadata import PatchUserRequestMetadata from .types.resource_created_response import ResourceCreatedResponse from .types.resource_updated_response import ResourceUpdatedResponse from .types.session import Session @@ -61,9 +55,6 @@ from .types.tool import Tool from .types.tool_response import ToolResponse from .types.update_agent_request_instructions import UpdateAgentRequestInstructions -from .types.update_agent_request_metadata import UpdateAgentRequestMetadata -from .types.update_session_request_metadata import UpdateSessionRequestMetadata -from .types.update_user_request_metadata import UpdateUserRequestMetadata from .types.user import User from .types.workflow_step import WorkflowStep @@ -153,7 +144,7 @@ def create_session( user_id: typing.Optional[str] = OMIT, agent_id: str, situation: typing.Optional[str] = OMIT, - metadata: typing.Optional[CreateSessionRequestMetadata] = OMIT, + metadata: typing.Optional[typing.Dict[str, typing.Any]] = OMIT, render_templates: typing.Optional[bool] = OMIT, token_budget: typing.Optional[int] = OMIT, context_overflow: typing.Optional[str] = OMIT, @@ -168,7 +159,7 @@ def create_session( - situation: typing.Optional[str]. A specific situation that sets the background for this session - - metadata: typing.Optional[CreateSessionRequestMetadata]. Optional metadata + - metadata: typing.Optional[typing.Dict[str, typing.Any]]. Optional metadata - render_templates: typing.Optional[bool]. Render system and assistant message content as jinja templates @@ -272,7 +263,7 @@ def create_user( name: typing.Optional[str] = OMIT, about: typing.Optional[str] = OMIT, docs: typing.Optional[typing.List[CreateDoc]] = OMIT, - metadata: typing.Optional[CreateUserRequestMetadata] = OMIT, + metadata: typing.Optional[typing.Dict[str, typing.Any]] = OMIT, ) -> ResourceCreatedResponse: """ Create a new user @@ -284,7 +275,7 @@ def create_user( - docs: typing.Optional[typing.List[CreateDoc]]. List of docs about user - - metadata: typing.Optional[CreateUserRequestMetadata]. (Optional) metadata + - metadata: typing.Optional[typing.Dict[str, typing.Any]]. (Optional) metadata --- from julep.client import JulepApi @@ -379,7 +370,7 @@ def create_agent( default_settings: typing.Optional[AgentDefaultSettings] = OMIT, model: typing.Optional[str] = OMIT, docs: typing.Optional[typing.List[CreateDoc]] = OMIT, - metadata: typing.Optional[CreateAgentRequestMetadata] = OMIT, + metadata: typing.Optional[typing.Dict[str, typing.Any]] = OMIT, instructions: typing.Optional[CreateAgentRequestInstructions] = OMIT, ) -> ResourceCreatedResponse: """ @@ -398,7 +389,7 @@ def create_agent( - docs: typing.Optional[typing.List[CreateDoc]]. List of docs about agent - - metadata: typing.Optional[CreateAgentRequestMetadata]. (Optional) metadata + - metadata: typing.Optional[typing.Dict[str, typing.Any]]. (Optional) metadata - instructions: typing.Optional[CreateAgentRequestInstructions]. Instructions for the agent --- @@ -478,7 +469,7 @@ def update_session( session_id: str, *, situation: str, - metadata: typing.Optional[UpdateSessionRequestMetadata] = OMIT, + metadata: typing.Optional[typing.Dict[str, typing.Any]] = OMIT, token_budget: typing.Optional[int] = OMIT, context_overflow: typing.Optional[str] = OMIT, ) -> ResourceUpdatedResponse: @@ -490,7 +481,7 @@ def update_session( - situation: str. Updated situation for this session - - metadata: typing.Optional[UpdateSessionRequestMetadata]. Optional metadata + - metadata: typing.Optional[typing.Dict[str, typing.Any]]. Optional metadata - token_budget: typing.Optional[int]. Threshold value for the adaptive context functionality @@ -567,7 +558,7 @@ def patch_session( session_id: str, *, situation: typing.Optional[str] = OMIT, - metadata: typing.Optional[PatchSessionRequestMetadata] = OMIT, + metadata: typing.Optional[typing.Dict[str, typing.Any]] = OMIT, token_budget: typing.Optional[int] = OMIT, context_overflow: typing.Optional[str] = OMIT, ) -> ResourceUpdatedResponse: @@ -579,7 +570,7 @@ def patch_session( - situation: typing.Optional[str]. Updated situation for this session - - metadata: typing.Optional[PatchSessionRequestMetadata]. Optional metadata + - metadata: typing.Optional[typing.Dict[str, typing.Any]]. Optional metadata - token_budget: typing.Optional[int]. Threshold value for the adaptive context functionality @@ -868,7 +859,7 @@ def chat( if min_p is not OMIT: _request["min_p"] = min_p if preset is not OMIT: - _request["preset"] = preset.value # pytype: disable=attribute-error + _request["preset"] = preset.value if model is not OMIT: _request["model"] = model if recall is not OMIT: @@ -986,7 +977,7 @@ def update_user( *, about: str, name: str, - metadata: typing.Optional[UpdateUserRequestMetadata] = OMIT, + metadata: typing.Optional[typing.Dict[str, typing.Any]] = OMIT, ) -> ResourceUpdatedResponse: """ @@ -998,7 +989,7 @@ def update_user( - name: str. Name of the user - - metadata: typing.Optional[UpdateUserRequestMetadata]. Optional metadata + - metadata: typing.Optional[typing.Dict[str, typing.Any]]. Optional metadata --- from julep.client import JulepApi @@ -1069,7 +1060,7 @@ def patch_user( *, about: typing.Optional[str] = OMIT, name: typing.Optional[str] = OMIT, - metadata: typing.Optional[PatchUserRequestMetadata] = OMIT, + metadata: typing.Optional[typing.Dict[str, typing.Any]] = OMIT, ) -> ResourceUpdatedResponse: """ @@ -1081,7 +1072,7 @@ def patch_user( - name: typing.Optional[str]. Name of the user - - metadata: typing.Optional[PatchUserRequestMetadata]. Optional metadata + - metadata: typing.Optional[typing.Dict[str, typing.Any]]. Optional metadata --- from julep.client import JulepApi @@ -1156,7 +1147,7 @@ def update_agent( name: str, model: typing.Optional[str] = OMIT, default_settings: typing.Optional[AgentDefaultSettings] = OMIT, - metadata: typing.Optional[UpdateAgentRequestMetadata] = OMIT, + metadata: typing.Optional[typing.Dict[str, typing.Any]] = OMIT, instructions: typing.Optional[UpdateAgentRequestInstructions] = OMIT, ) -> ResourceUpdatedResponse: """ @@ -1173,7 +1164,7 @@ def update_agent( - default_settings: typing.Optional[AgentDefaultSettings]. Default model settings to start every session with - - metadata: typing.Optional[UpdateAgentRequestMetadata]. Optional metadata + - metadata: typing.Optional[typing.Dict[str, typing.Any]]. Optional metadata - instructions: typing.Optional[UpdateAgentRequestInstructions]. Instructions for the agent --- @@ -1254,7 +1245,7 @@ def patch_agent( name: typing.Optional[str] = OMIT, model: typing.Optional[str] = OMIT, default_settings: typing.Optional[AgentDefaultSettings] = OMIT, - metadata: typing.Optional[PatchAgentRequestMetadata] = OMIT, + metadata: typing.Optional[typing.Dict[str, typing.Any]] = OMIT, instructions: typing.Optional[PatchAgentRequestInstructions] = OMIT, ) -> ResourceUpdatedResponse: """ @@ -1271,7 +1262,7 @@ def patch_agent( - default_settings: typing.Optional[AgentDefaultSettings]. Default model settings to start every session with - - metadata: typing.Optional[PatchAgentRequestMetadata]. Optional metadata + - metadata: typing.Optional[typing.Dict[str, typing.Any]]. Optional metadata - instructions: typing.Optional[PatchAgentRequestInstructions]. Instructions for the agent --- @@ -2263,7 +2254,7 @@ async def create_session( user_id: typing.Optional[str] = OMIT, agent_id: str, situation: typing.Optional[str] = OMIT, - metadata: typing.Optional[CreateSessionRequestMetadata] = OMIT, + metadata: typing.Optional[typing.Dict[str, typing.Any]] = OMIT, render_templates: typing.Optional[bool] = OMIT, token_budget: typing.Optional[int] = OMIT, context_overflow: typing.Optional[str] = OMIT, @@ -2278,7 +2269,7 @@ async def create_session( - situation: typing.Optional[str]. A specific situation that sets the background for this session - - metadata: typing.Optional[CreateSessionRequestMetadata]. Optional metadata + - metadata: typing.Optional[typing.Dict[str, typing.Any]]. Optional metadata - render_templates: typing.Optional[bool]. Render system and assistant message content as jinja templates @@ -2382,7 +2373,7 @@ async def create_user( name: typing.Optional[str] = OMIT, about: typing.Optional[str] = OMIT, docs: typing.Optional[typing.List[CreateDoc]] = OMIT, - metadata: typing.Optional[CreateUserRequestMetadata] = OMIT, + metadata: typing.Optional[typing.Dict[str, typing.Any]] = OMIT, ) -> ResourceCreatedResponse: """ Create a new user @@ -2394,7 +2385,7 @@ async def create_user( - docs: typing.Optional[typing.List[CreateDoc]]. List of docs about user - - metadata: typing.Optional[CreateUserRequestMetadata]. (Optional) metadata + - metadata: typing.Optional[typing.Dict[str, typing.Any]]. (Optional) metadata --- from julep.client import AsyncJulepApi @@ -2489,7 +2480,7 @@ async def create_agent( default_settings: typing.Optional[AgentDefaultSettings] = OMIT, model: typing.Optional[str] = OMIT, docs: typing.Optional[typing.List[CreateDoc]] = OMIT, - metadata: typing.Optional[CreateAgentRequestMetadata] = OMIT, + metadata: typing.Optional[typing.Dict[str, typing.Any]] = OMIT, instructions: typing.Optional[CreateAgentRequestInstructions] = OMIT, ) -> ResourceCreatedResponse: """ @@ -2508,7 +2499,7 @@ async def create_agent( - docs: typing.Optional[typing.List[CreateDoc]]. List of docs about agent - - metadata: typing.Optional[CreateAgentRequestMetadata]. (Optional) metadata + - metadata: typing.Optional[typing.Dict[str, typing.Any]]. (Optional) metadata - instructions: typing.Optional[CreateAgentRequestInstructions]. Instructions for the agent --- @@ -2588,7 +2579,7 @@ async def update_session( session_id: str, *, situation: str, - metadata: typing.Optional[UpdateSessionRequestMetadata] = OMIT, + metadata: typing.Optional[typing.Dict[str, typing.Any]] = OMIT, token_budget: typing.Optional[int] = OMIT, context_overflow: typing.Optional[str] = OMIT, ) -> ResourceUpdatedResponse: @@ -2600,7 +2591,7 @@ async def update_session( - situation: str. Updated situation for this session - - metadata: typing.Optional[UpdateSessionRequestMetadata]. Optional metadata + - metadata: typing.Optional[typing.Dict[str, typing.Any]]. Optional metadata - token_budget: typing.Optional[int]. Threshold value for the adaptive context functionality @@ -2677,7 +2668,7 @@ async def patch_session( session_id: str, *, situation: typing.Optional[str] = OMIT, - metadata: typing.Optional[PatchSessionRequestMetadata] = OMIT, + metadata: typing.Optional[typing.Dict[str, typing.Any]] = OMIT, token_budget: typing.Optional[int] = OMIT, context_overflow: typing.Optional[str] = OMIT, ) -> ResourceUpdatedResponse: @@ -2689,7 +2680,7 @@ async def patch_session( - situation: typing.Optional[str]. Updated situation for this session - - metadata: typing.Optional[PatchSessionRequestMetadata]. Optional metadata + - metadata: typing.Optional[typing.Dict[str, typing.Any]]. Optional metadata - token_budget: typing.Optional[int]. Threshold value for the adaptive context functionality @@ -2978,7 +2969,7 @@ async def chat( if min_p is not OMIT: _request["min_p"] = min_p if preset is not OMIT: - _request["preset"] = preset.value # pytype: disable=attribute-error + _request["preset"] = preset.value if model is not OMIT: _request["model"] = model if recall is not OMIT: @@ -3096,7 +3087,7 @@ async def update_user( *, about: str, name: str, - metadata: typing.Optional[UpdateUserRequestMetadata] = OMIT, + metadata: typing.Optional[typing.Dict[str, typing.Any]] = OMIT, ) -> ResourceUpdatedResponse: """ @@ -3108,7 +3099,7 @@ async def update_user( - name: str. Name of the user - - metadata: typing.Optional[UpdateUserRequestMetadata]. Optional metadata + - metadata: typing.Optional[typing.Dict[str, typing.Any]]. Optional metadata --- from julep.client import AsyncJulepApi @@ -3179,7 +3170,7 @@ async def patch_user( *, about: typing.Optional[str] = OMIT, name: typing.Optional[str] = OMIT, - metadata: typing.Optional[PatchUserRequestMetadata] = OMIT, + metadata: typing.Optional[typing.Dict[str, typing.Any]] = OMIT, ) -> ResourceUpdatedResponse: """ @@ -3191,7 +3182,7 @@ async def patch_user( - name: typing.Optional[str]. Name of the user - - metadata: typing.Optional[PatchUserRequestMetadata]. Optional metadata + - metadata: typing.Optional[typing.Dict[str, typing.Any]]. Optional metadata --- from julep.client import AsyncJulepApi @@ -3266,7 +3257,7 @@ async def update_agent( name: str, model: typing.Optional[str] = OMIT, default_settings: typing.Optional[AgentDefaultSettings] = OMIT, - metadata: typing.Optional[UpdateAgentRequestMetadata] = OMIT, + metadata: typing.Optional[typing.Dict[str, typing.Any]] = OMIT, instructions: typing.Optional[UpdateAgentRequestInstructions] = OMIT, ) -> ResourceUpdatedResponse: """ @@ -3283,7 +3274,7 @@ async def update_agent( - default_settings: typing.Optional[AgentDefaultSettings]. Default model settings to start every session with - - metadata: typing.Optional[UpdateAgentRequestMetadata]. Optional metadata + - metadata: typing.Optional[typing.Dict[str, typing.Any]]. Optional metadata - instructions: typing.Optional[UpdateAgentRequestInstructions]. Instructions for the agent --- @@ -3364,7 +3355,7 @@ async def patch_agent( name: typing.Optional[str] = OMIT, model: typing.Optional[str] = OMIT, default_settings: typing.Optional[AgentDefaultSettings] = OMIT, - metadata: typing.Optional[PatchAgentRequestMetadata] = OMIT, + metadata: typing.Optional[typing.Dict[str, typing.Any]] = OMIT, instructions: typing.Optional[PatchAgentRequestInstructions] = OMIT, ) -> ResourceUpdatedResponse: """ @@ -3381,7 +3372,7 @@ async def patch_agent( - default_settings: typing.Optional[AgentDefaultSettings]. Default model settings to start every session with - - metadata: typing.Optional[PatchAgentRequestMetadata]. Optional metadata + - metadata: typing.Optional[typing.Dict[str, typing.Any]]. Optional metadata - instructions: typing.Optional[PatchAgentRequestInstructions]. Instructions for the agent --- diff --git a/sdks/python/julep/api/types/__init__.py b/sdks/python/julep/api/types/__init__.py index c4a55c290..35074987f 100644 --- a/sdks/python/julep/api/types/__init__.py +++ b/sdks/python/julep/api/types/__init__.py @@ -4,7 +4,6 @@ from .agent_default_settings import AgentDefaultSettings from .agent_default_settings_preset import AgentDefaultSettingsPreset from .agent_instructions import AgentInstructions -from .agent_metadata import AgentMetadata from .cel_object import CelObject from .chat_input_data import ChatInputData from .chat_input_data_tool_choice import ChatInputDataToolChoice @@ -32,18 +31,13 @@ from .chat_settings_stop import ChatSettingsStop from .completion_usage import CompletionUsage from .create_agent_request_instructions import CreateAgentRequestInstructions -from .create_agent_request_metadata import CreateAgentRequestMetadata from .create_doc import CreateDoc from .create_doc_content import CreateDocContent -from .create_doc_metadata import CreateDocMetadata -from .create_session_request_metadata import CreateSessionRequestMetadata from .create_tool_request import CreateToolRequest from .create_tool_request_type import CreateToolRequestType -from .create_user_request_metadata import CreateUserRequestMetadata from .doc import Doc from .doc_content import DocContent from .doc_ids import DocIds -from .doc_metadata import DocMetadata from .error_workflow_step import ErrorWorkflowStep from .evaluate_workflow_step import EvaluateWorkflowStep from .execution import Execution @@ -89,15 +83,11 @@ from .named_tool_choice_function import NamedToolChoiceFunction from .partial_function_def import PartialFunctionDef from .patch_agent_request_instructions import PatchAgentRequestInstructions -from .patch_agent_request_metadata import PatchAgentRequestMetadata -from .patch_session_request_metadata import PatchSessionRequestMetadata -from .patch_user_request_metadata import PatchUserRequestMetadata from .prompt_workflow_step import PromptWorkflowStep from .resource_created_response import ResourceCreatedResponse from .resource_deleted_response import ResourceDeletedResponse from .resource_updated_response import ResourceUpdatedResponse from .session import Session -from .session_metadata import SessionMetadata from .suggestion import Suggestion from .suggestion_target import SuggestionTarget from .task import Task @@ -108,11 +98,7 @@ from .tool_type import ToolType from .transition_type import TransitionType from .update_agent_request_instructions import UpdateAgentRequestInstructions -from .update_agent_request_metadata import UpdateAgentRequestMetadata -from .update_session_request_metadata import UpdateSessionRequestMetadata -from .update_user_request_metadata import UpdateUserRequestMetadata from .user import User -from .user_metadata import UserMetadata from .workflow_step import WorkflowStep from .yield_workflow_step import YieldWorkflowStep @@ -121,7 +107,6 @@ "AgentDefaultSettings", "AgentDefaultSettingsPreset", "AgentInstructions", - "AgentMetadata", "CelObject", "ChatInputData", "ChatInputDataToolChoice", @@ -145,18 +130,13 @@ "ChatSettingsStop", "CompletionUsage", "CreateAgentRequestInstructions", - "CreateAgentRequestMetadata", "CreateDoc", "CreateDocContent", - "CreateDocMetadata", - "CreateSessionRequestMetadata", "CreateToolRequest", "CreateToolRequestType", - "CreateUserRequestMetadata", "Doc", "DocContent", "DocIds", - "DocMetadata", "ErrorWorkflowStep", "EvaluateWorkflowStep", "Execution", @@ -200,15 +180,11 @@ "NamedToolChoiceFunction", "PartialFunctionDef", "PatchAgentRequestInstructions", - "PatchAgentRequestMetadata", - "PatchSessionRequestMetadata", - "PatchUserRequestMetadata", "PromptWorkflowStep", "ResourceCreatedResponse", "ResourceDeletedResponse", "ResourceUpdatedResponse", "Session", - "SessionMetadata", "Suggestion", "SuggestionTarget", "Task", @@ -219,11 +195,7 @@ "ToolType", "TransitionType", "UpdateAgentRequestInstructions", - "UpdateAgentRequestMetadata", - "UpdateSessionRequestMetadata", - "UpdateUserRequestMetadata", "User", - "UserMetadata", "WorkflowStep", "YieldWorkflowStep", ] diff --git a/sdks/python/julep/api/types/agent.py b/sdks/python/julep/api/types/agent.py index 4666d5a06..4f6ca8cc2 100644 --- a/sdks/python/julep/api/types/agent.py +++ b/sdks/python/julep/api/types/agent.py @@ -6,7 +6,6 @@ from ..core.datetime_utils import serialize_datetime from .agent_default_settings import AgentDefaultSettings from .agent_instructions import AgentInstructions -from .agent_metadata import AgentMetadata try: import pydantic.v1 as pydantic # type: ignore @@ -28,7 +27,7 @@ class Agent(pydantic.BaseModel): description="Default settings for all sessions created by this agent" ) model: str = pydantic.Field(description="The model to use with this agent") - metadata: typing.Optional[AgentMetadata] = pydantic.Field( + metadata: typing.Optional[typing.Dict[str, typing.Any]] = pydantic.Field( description="Optional metadata" ) instructions: typing.Optional[AgentInstructions] = pydantic.Field( diff --git a/sdks/python/julep/api/types/agent_metadata.py b/sdks/python/julep/api/types/agent_metadata.py deleted file mode 100644 index d2f34fcff..000000000 --- a/sdks/python/julep/api/types/agent_metadata.py +++ /dev/null @@ -1,38 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -from ..core.datetime_utils import serialize_datetime - -try: - import pydantic.v1 as pydantic # type: ignore -except ImportError: - import pydantic # type: ignore - - -class AgentMetadata(pydantic.BaseModel): - """ - Optional metadata - """ - - def json(self, **kwargs: typing.Any) -> str: - kwargs_with_defaults: typing.Any = { - "by_alias": True, - "exclude_unset": True, - **kwargs, - } - return super().json(**kwargs_with_defaults) - - def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]: - kwargs_with_defaults: typing.Any = { - "by_alias": True, - "exclude_unset": True, - **kwargs, - } - return super().dict(**kwargs_with_defaults) - - class Config: - frozen = True - smart_union = True - json_encoders = {dt.datetime: serialize_datetime} diff --git a/sdks/python/julep/api/types/create_agent_request_metadata.py b/sdks/python/julep/api/types/create_agent_request_metadata.py deleted file mode 100644 index 3fd07f344..000000000 --- a/sdks/python/julep/api/types/create_agent_request_metadata.py +++ /dev/null @@ -1,38 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -from ..core.datetime_utils import serialize_datetime - -try: - import pydantic.v1 as pydantic # type: ignore -except ImportError: - import pydantic # type: ignore - - -class CreateAgentRequestMetadata(pydantic.BaseModel): - """ - (Optional) metadata - """ - - def json(self, **kwargs: typing.Any) -> str: - kwargs_with_defaults: typing.Any = { - "by_alias": True, - "exclude_unset": True, - **kwargs, - } - return super().json(**kwargs_with_defaults) - - def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]: - kwargs_with_defaults: typing.Any = { - "by_alias": True, - "exclude_unset": True, - **kwargs, - } - return super().dict(**kwargs_with_defaults) - - class Config: - frozen = True - smart_union = True - json_encoders = {dt.datetime: serialize_datetime} diff --git a/sdks/python/julep/api/types/create_doc.py b/sdks/python/julep/api/types/create_doc.py index 3c7d2b602..3411254d8 100644 --- a/sdks/python/julep/api/types/create_doc.py +++ b/sdks/python/julep/api/types/create_doc.py @@ -5,7 +5,6 @@ from ..core.datetime_utils import serialize_datetime from .create_doc_content import CreateDocContent -from .create_doc_metadata import CreateDocMetadata try: import pydantic.v1 as pydantic # type: ignore @@ -18,7 +17,7 @@ class CreateDoc(pydantic.BaseModel): description="Title describing what this bit of information contains" ) content: CreateDocContent = pydantic.Field(description="Information content") - metadata: typing.Optional[CreateDocMetadata] = pydantic.Field( + metadata: typing.Optional[typing.Dict[str, typing.Any]] = pydantic.Field( description="Optional metadata" ) diff --git a/sdks/python/julep/api/types/create_doc_metadata.py b/sdks/python/julep/api/types/create_doc_metadata.py deleted file mode 100644 index 929a3a82e..000000000 --- a/sdks/python/julep/api/types/create_doc_metadata.py +++ /dev/null @@ -1,38 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -from ..core.datetime_utils import serialize_datetime - -try: - import pydantic.v1 as pydantic # type: ignore -except ImportError: - import pydantic # type: ignore - - -class CreateDocMetadata(pydantic.BaseModel): - """ - Optional metadata - """ - - def json(self, **kwargs: typing.Any) -> str: - kwargs_with_defaults: typing.Any = { - "by_alias": True, - "exclude_unset": True, - **kwargs, - } - return super().json(**kwargs_with_defaults) - - def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]: - kwargs_with_defaults: typing.Any = { - "by_alias": True, - "exclude_unset": True, - **kwargs, - } - return super().dict(**kwargs_with_defaults) - - class Config: - frozen = True - smart_union = True - json_encoders = {dt.datetime: serialize_datetime} diff --git a/sdks/python/julep/api/types/create_session_request_metadata.py b/sdks/python/julep/api/types/create_session_request_metadata.py deleted file mode 100644 index e6f6f3bbc..000000000 --- a/sdks/python/julep/api/types/create_session_request_metadata.py +++ /dev/null @@ -1,38 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -from ..core.datetime_utils import serialize_datetime - -try: - import pydantic.v1 as pydantic # type: ignore -except ImportError: - import pydantic # type: ignore - - -class CreateSessionRequestMetadata(pydantic.BaseModel): - """ - Optional metadata - """ - - def json(self, **kwargs: typing.Any) -> str: - kwargs_with_defaults: typing.Any = { - "by_alias": True, - "exclude_unset": True, - **kwargs, - } - return super().json(**kwargs_with_defaults) - - def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]: - kwargs_with_defaults: typing.Any = { - "by_alias": True, - "exclude_unset": True, - **kwargs, - } - return super().dict(**kwargs_with_defaults) - - class Config: - frozen = True - smart_union = True - json_encoders = {dt.datetime: serialize_datetime} diff --git a/sdks/python/julep/api/types/create_user_request_metadata.py b/sdks/python/julep/api/types/create_user_request_metadata.py deleted file mode 100644 index c5b98e0b5..000000000 --- a/sdks/python/julep/api/types/create_user_request_metadata.py +++ /dev/null @@ -1,38 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -from ..core.datetime_utils import serialize_datetime - -try: - import pydantic.v1 as pydantic # type: ignore -except ImportError: - import pydantic # type: ignore - - -class CreateUserRequestMetadata(pydantic.BaseModel): - """ - (Optional) metadata - """ - - def json(self, **kwargs: typing.Any) -> str: - kwargs_with_defaults: typing.Any = { - "by_alias": True, - "exclude_unset": True, - **kwargs, - } - return super().json(**kwargs_with_defaults) - - def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]: - kwargs_with_defaults: typing.Any = { - "by_alias": True, - "exclude_unset": True, - **kwargs, - } - return super().dict(**kwargs_with_defaults) - - class Config: - frozen = True - smart_union = True - json_encoders = {dt.datetime: serialize_datetime} diff --git a/sdks/python/julep/api/types/doc.py b/sdks/python/julep/api/types/doc.py index 6239d4090..a7cdcdb44 100644 --- a/sdks/python/julep/api/types/doc.py +++ b/sdks/python/julep/api/types/doc.py @@ -5,7 +5,6 @@ from ..core.datetime_utils import serialize_datetime from .doc_content import DocContent -from .doc_metadata import DocMetadata try: import pydantic.v1 as pydantic # type: ignore @@ -20,7 +19,7 @@ class Doc(pydantic.BaseModel): content: DocContent = pydantic.Field(description="Information content") id: str = pydantic.Field(description="ID of doc") created_at: dt.datetime = pydantic.Field(description="Doc created at") - metadata: typing.Optional[DocMetadata] = pydantic.Field( + metadata: typing.Optional[typing.Dict[str, typing.Any]] = pydantic.Field( description="optional metadata" ) diff --git a/sdks/python/julep/api/types/doc_metadata.py b/sdks/python/julep/api/types/doc_metadata.py deleted file mode 100644 index 92fdbd378..000000000 --- a/sdks/python/julep/api/types/doc_metadata.py +++ /dev/null @@ -1,38 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -from ..core.datetime_utils import serialize_datetime - -try: - import pydantic.v1 as pydantic # type: ignore -except ImportError: - import pydantic # type: ignore - - -class DocMetadata(pydantic.BaseModel): - """ - optional metadata - """ - - def json(self, **kwargs: typing.Any) -> str: - kwargs_with_defaults: typing.Any = { - "by_alias": True, - "exclude_unset": True, - **kwargs, - } - return super().json(**kwargs_with_defaults) - - def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]: - kwargs_with_defaults: typing.Any = { - "by_alias": True, - "exclude_unset": True, - **kwargs, - } - return super().dict(**kwargs_with_defaults) - - class Config: - frozen = True - smart_union = True - json_encoders = {dt.datetime: serialize_datetime} diff --git a/sdks/python/julep/api/types/execution_transition.py b/sdks/python/julep/api/types/execution_transition.py index b631087ca..59167277f 100644 --- a/sdks/python/julep/api/types/execution_transition.py +++ b/sdks/python/julep/api/types/execution_transition.py @@ -15,13 +15,18 @@ class ExecutionTransition(pydantic.BaseModel): id: str execution_id: str - created_at: dt.datetime + type: TransitionType + from_: typing.List[typing.Any] = pydantic.Field(alias="from") + to: typing.Optional[typing.List[typing.Any]] + task_token: typing.Optional[str] outputs: typing.Dict[str, typing.Any] = pydantic.Field( description="Outputs from an Execution Transition" ) - from_: typing.List[typing.Any] = pydantic.Field(alias="from") - to: typing.Optional[typing.List[typing.Any]] - type: TransitionType + metadata: typing.Optional[typing.Dict[str, typing.Any]] = pydantic.Field( + description="(Optional) metadata" + ) + created_at: dt.datetime + updated_at: typing.Optional[dt.datetime] def json(self, **kwargs: typing.Any) -> str: kwargs_with_defaults: typing.Any = { diff --git a/sdks/python/julep/api/types/patch_agent_request_metadata.py b/sdks/python/julep/api/types/patch_agent_request_metadata.py deleted file mode 100644 index 5490771e2..000000000 --- a/sdks/python/julep/api/types/patch_agent_request_metadata.py +++ /dev/null @@ -1,38 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -from ..core.datetime_utils import serialize_datetime - -try: - import pydantic.v1 as pydantic # type: ignore -except ImportError: - import pydantic # type: ignore - - -class PatchAgentRequestMetadata(pydantic.BaseModel): - """ - Optional metadata - """ - - def json(self, **kwargs: typing.Any) -> str: - kwargs_with_defaults: typing.Any = { - "by_alias": True, - "exclude_unset": True, - **kwargs, - } - return super().json(**kwargs_with_defaults) - - def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]: - kwargs_with_defaults: typing.Any = { - "by_alias": True, - "exclude_unset": True, - **kwargs, - } - return super().dict(**kwargs_with_defaults) - - class Config: - frozen = True - smart_union = True - json_encoders = {dt.datetime: serialize_datetime} diff --git a/sdks/python/julep/api/types/patch_session_request_metadata.py b/sdks/python/julep/api/types/patch_session_request_metadata.py deleted file mode 100644 index b448093f4..000000000 --- a/sdks/python/julep/api/types/patch_session_request_metadata.py +++ /dev/null @@ -1,38 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -from ..core.datetime_utils import serialize_datetime - -try: - import pydantic.v1 as pydantic # type: ignore -except ImportError: - import pydantic # type: ignore - - -class PatchSessionRequestMetadata(pydantic.BaseModel): - """ - Optional metadata - """ - - def json(self, **kwargs: typing.Any) -> str: - kwargs_with_defaults: typing.Any = { - "by_alias": True, - "exclude_unset": True, - **kwargs, - } - return super().json(**kwargs_with_defaults) - - def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]: - kwargs_with_defaults: typing.Any = { - "by_alias": True, - "exclude_unset": True, - **kwargs, - } - return super().dict(**kwargs_with_defaults) - - class Config: - frozen = True - smart_union = True - json_encoders = {dt.datetime: serialize_datetime} diff --git a/sdks/python/julep/api/types/patch_user_request_metadata.py b/sdks/python/julep/api/types/patch_user_request_metadata.py deleted file mode 100644 index 69042fa5d..000000000 --- a/sdks/python/julep/api/types/patch_user_request_metadata.py +++ /dev/null @@ -1,38 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -from ..core.datetime_utils import serialize_datetime - -try: - import pydantic.v1 as pydantic # type: ignore -except ImportError: - import pydantic # type: ignore - - -class PatchUserRequestMetadata(pydantic.BaseModel): - """ - Optional metadata - """ - - def json(self, **kwargs: typing.Any) -> str: - kwargs_with_defaults: typing.Any = { - "by_alias": True, - "exclude_unset": True, - **kwargs, - } - return super().json(**kwargs_with_defaults) - - def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]: - kwargs_with_defaults: typing.Any = { - "by_alias": True, - "exclude_unset": True, - **kwargs, - } - return super().dict(**kwargs_with_defaults) - - class Config: - frozen = True - smart_union = True - json_encoders = {dt.datetime: serialize_datetime} diff --git a/sdks/python/julep/api/types/session.py b/sdks/python/julep/api/types/session.py index e5b6aafe2..22081c5e2 100644 --- a/sdks/python/julep/api/types/session.py +++ b/sdks/python/julep/api/types/session.py @@ -4,7 +4,6 @@ import typing from ..core.datetime_utils import serialize_datetime -from .session_metadata import SessionMetadata try: import pydantic.v1 as pydantic # type: ignore @@ -32,7 +31,7 @@ class Session(pydantic.BaseModel): updated_at: typing.Optional[dt.datetime] = pydantic.Field( description="Session updated at (RFC-3339 format)" ) - metadata: typing.Optional[SessionMetadata] = pydantic.Field( + metadata: typing.Optional[typing.Dict[str, typing.Any]] = pydantic.Field( description="Optional metadata" ) render_templates: typing.Optional[bool] = pydantic.Field( diff --git a/sdks/python/julep/api/types/session_metadata.py b/sdks/python/julep/api/types/session_metadata.py deleted file mode 100644 index 6cc3f87d6..000000000 --- a/sdks/python/julep/api/types/session_metadata.py +++ /dev/null @@ -1,38 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -from ..core.datetime_utils import serialize_datetime - -try: - import pydantic.v1 as pydantic # type: ignore -except ImportError: - import pydantic # type: ignore - - -class SessionMetadata(pydantic.BaseModel): - """ - Optional metadata - """ - - def json(self, **kwargs: typing.Any) -> str: - kwargs_with_defaults: typing.Any = { - "by_alias": True, - "exclude_unset": True, - **kwargs, - } - return super().json(**kwargs_with_defaults) - - def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]: - kwargs_with_defaults: typing.Any = { - "by_alias": True, - "exclude_unset": True, - **kwargs, - } - return super().dict(**kwargs_with_defaults) - - class Config: - frozen = True - smart_union = True - json_encoders = {dt.datetime: serialize_datetime} diff --git a/sdks/python/julep/api/types/update_agent_request_metadata.py b/sdks/python/julep/api/types/update_agent_request_metadata.py deleted file mode 100644 index 307d19871..000000000 --- a/sdks/python/julep/api/types/update_agent_request_metadata.py +++ /dev/null @@ -1,38 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -from ..core.datetime_utils import serialize_datetime - -try: - import pydantic.v1 as pydantic # type: ignore -except ImportError: - import pydantic # type: ignore - - -class UpdateAgentRequestMetadata(pydantic.BaseModel): - """ - Optional metadata - """ - - def json(self, **kwargs: typing.Any) -> str: - kwargs_with_defaults: typing.Any = { - "by_alias": True, - "exclude_unset": True, - **kwargs, - } - return super().json(**kwargs_with_defaults) - - def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]: - kwargs_with_defaults: typing.Any = { - "by_alias": True, - "exclude_unset": True, - **kwargs, - } - return super().dict(**kwargs_with_defaults) - - class Config: - frozen = True - smart_union = True - json_encoders = {dt.datetime: serialize_datetime} diff --git a/sdks/python/julep/api/types/update_session_request_metadata.py b/sdks/python/julep/api/types/update_session_request_metadata.py deleted file mode 100644 index d3e9fdd85..000000000 --- a/sdks/python/julep/api/types/update_session_request_metadata.py +++ /dev/null @@ -1,38 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -from ..core.datetime_utils import serialize_datetime - -try: - import pydantic.v1 as pydantic # type: ignore -except ImportError: - import pydantic # type: ignore - - -class UpdateSessionRequestMetadata(pydantic.BaseModel): - """ - Optional metadata - """ - - def json(self, **kwargs: typing.Any) -> str: - kwargs_with_defaults: typing.Any = { - "by_alias": True, - "exclude_unset": True, - **kwargs, - } - return super().json(**kwargs_with_defaults) - - def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]: - kwargs_with_defaults: typing.Any = { - "by_alias": True, - "exclude_unset": True, - **kwargs, - } - return super().dict(**kwargs_with_defaults) - - class Config: - frozen = True - smart_union = True - json_encoders = {dt.datetime: serialize_datetime} diff --git a/sdks/python/julep/api/types/update_user_request_metadata.py b/sdks/python/julep/api/types/update_user_request_metadata.py deleted file mode 100644 index 187004554..000000000 --- a/sdks/python/julep/api/types/update_user_request_metadata.py +++ /dev/null @@ -1,38 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -from ..core.datetime_utils import serialize_datetime - -try: - import pydantic.v1 as pydantic # type: ignore -except ImportError: - import pydantic # type: ignore - - -class UpdateUserRequestMetadata(pydantic.BaseModel): - """ - Optional metadata - """ - - def json(self, **kwargs: typing.Any) -> str: - kwargs_with_defaults: typing.Any = { - "by_alias": True, - "exclude_unset": True, - **kwargs, - } - return super().json(**kwargs_with_defaults) - - def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]: - kwargs_with_defaults: typing.Any = { - "by_alias": True, - "exclude_unset": True, - **kwargs, - } - return super().dict(**kwargs_with_defaults) - - class Config: - frozen = True - smart_union = True - json_encoders = {dt.datetime: serialize_datetime} diff --git a/sdks/python/julep/api/types/user.py b/sdks/python/julep/api/types/user.py index f4db3a09f..0dd901d13 100644 --- a/sdks/python/julep/api/types/user.py +++ b/sdks/python/julep/api/types/user.py @@ -4,7 +4,6 @@ import typing from ..core.datetime_utils import serialize_datetime -from .user_metadata import UserMetadata try: import pydantic.v1 as pydantic # type: ignore @@ -22,7 +21,7 @@ class User(pydantic.BaseModel): description="User updated at (RFC-3339 format)" ) id: str = pydantic.Field(description="User id (UUID)") - metadata: typing.Optional[UserMetadata] = pydantic.Field( + metadata: typing.Optional[typing.Dict[str, typing.Any]] = pydantic.Field( description="(Optional) metadata" ) diff --git a/sdks/python/julep/api/types/user_metadata.py b/sdks/python/julep/api/types/user_metadata.py deleted file mode 100644 index 0215af1f6..000000000 --- a/sdks/python/julep/api/types/user_metadata.py +++ /dev/null @@ -1,38 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -from ..core.datetime_utils import serialize_datetime - -try: - import pydantic.v1 as pydantic # type: ignore -except ImportError: - import pydantic # type: ignore - - -class UserMetadata(pydantic.BaseModel): - """ - (Optional) metadata - """ - - def json(self, **kwargs: typing.Any) -> str: - kwargs_with_defaults: typing.Any = { - "by_alias": True, - "exclude_unset": True, - **kwargs, - } - return super().json(**kwargs_with_defaults) - - def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]: - kwargs_with_defaults: typing.Any = { - "by_alias": True, - "exclude_unset": True, - **kwargs, - } - return super().dict(**kwargs_with_defaults) - - class Config: - frozen = True - smart_union = True - json_encoders = {dt.datetime: serialize_datetime} diff --git a/sdks/ts/src/api/models/Agent.ts b/sdks/ts/src/api/models/Agent.ts index efb9980fb..e02e429e6 100644 --- a/sdks/ts/src/api/models/Agent.ts +++ b/sdks/ts/src/api/models/Agent.ts @@ -35,7 +35,7 @@ export type Agent = { /** * Optional metadata */ - metadata?: any; + metadata?: Record; /** * Instructions for the agent */ diff --git a/sdks/ts/src/api/models/CreateAgentRequest.ts b/sdks/ts/src/api/models/CreateAgentRequest.ts index cfc9440ee..8eac6089d 100644 --- a/sdks/ts/src/api/models/CreateAgentRequest.ts +++ b/sdks/ts/src/api/models/CreateAgentRequest.ts @@ -36,7 +36,7 @@ export type CreateAgentRequest = { /** * (Optional) metadata */ - metadata?: any; + metadata?: Record; /** * Instructions for the agent */ diff --git a/sdks/ts/src/api/models/CreateDoc.ts b/sdks/ts/src/api/models/CreateDoc.ts index ff4542a0c..c897a0abc 100644 --- a/sdks/ts/src/api/models/CreateDoc.ts +++ b/sdks/ts/src/api/models/CreateDoc.ts @@ -14,5 +14,5 @@ export type CreateDoc = { /** * Optional metadata */ - metadata?: any; + metadata?: Record; }; diff --git a/sdks/ts/src/api/models/CreateSessionRequest.ts b/sdks/ts/src/api/models/CreateSessionRequest.ts index 47cc2bf0f..d21b3236f 100644 --- a/sdks/ts/src/api/models/CreateSessionRequest.ts +++ b/sdks/ts/src/api/models/CreateSessionRequest.ts @@ -21,7 +21,7 @@ export type CreateSessionRequest = { /** * Optional metadata */ - metadata?: any; + metadata?: Record; /** * Render system and assistant message content as jinja templates */ diff --git a/sdks/ts/src/api/models/CreateUserRequest.ts b/sdks/ts/src/api/models/CreateUserRequest.ts index f8def3034..753117f26 100644 --- a/sdks/ts/src/api/models/CreateUserRequest.ts +++ b/sdks/ts/src/api/models/CreateUserRequest.ts @@ -22,5 +22,5 @@ export type CreateUserRequest = { /** * (Optional) metadata */ - metadata?: any; + metadata?: Record; }; diff --git a/sdks/ts/src/api/models/Doc.ts b/sdks/ts/src/api/models/Doc.ts index 4e190d21f..329cd4bdc 100644 --- a/sdks/ts/src/api/models/Doc.ts +++ b/sdks/ts/src/api/models/Doc.ts @@ -22,5 +22,5 @@ export type Doc = { /** * optional metadata */ - metadata?: any; + metadata?: Record; }; diff --git a/sdks/ts/src/api/models/ExecutionTransition.ts b/sdks/ts/src/api/models/ExecutionTransition.ts index a9587495b..ff02394fc 100644 --- a/sdks/ts/src/api/models/ExecutionTransition.ts +++ b/sdks/ts/src/api/models/ExecutionTransition.ts @@ -6,12 +6,18 @@ import type { TransitionType } from "./TransitionType"; export type ExecutionTransition = { id: string; execution_id: string; - created_at: string; + type: TransitionType; + from: Array; + to: Array | null; + task_token?: string | null; /** * Outputs from an Execution Transition */ outputs: Record; - from: Array; - to: Array | null; - type: TransitionType; + /** + * (Optional) metadata + */ + metadata?: Record; + created_at: string; + updated_at?: string; }; diff --git a/sdks/ts/src/api/models/PatchAgentRequest.ts b/sdks/ts/src/api/models/PatchAgentRequest.ts index 4f729f3c1..49d5cd64d 100644 --- a/sdks/ts/src/api/models/PatchAgentRequest.ts +++ b/sdks/ts/src/api/models/PatchAgentRequest.ts @@ -26,7 +26,7 @@ export type PatchAgentRequest = { /** * Optional metadata */ - metadata?: any; + metadata?: Record; /** * Instructions for the agent */ diff --git a/sdks/ts/src/api/models/PatchSessionRequest.ts b/sdks/ts/src/api/models/PatchSessionRequest.ts index 4a109cfee..dc2968c9c 100644 --- a/sdks/ts/src/api/models/PatchSessionRequest.ts +++ b/sdks/ts/src/api/models/PatchSessionRequest.ts @@ -13,7 +13,7 @@ export type PatchSessionRequest = { /** * Optional metadata */ - metadata?: any; + metadata?: Record; /** * Threshold value for the adaptive context functionality */ diff --git a/sdks/ts/src/api/models/PatchUserRequest.ts b/sdks/ts/src/api/models/PatchUserRequest.ts index 937282d6e..0719b0d54 100644 --- a/sdks/ts/src/api/models/PatchUserRequest.ts +++ b/sdks/ts/src/api/models/PatchUserRequest.ts @@ -17,5 +17,5 @@ export type PatchUserRequest = { /** * Optional metadata */ - metadata?: any; + metadata?: Record; }; diff --git a/sdks/ts/src/api/models/Session.ts b/sdks/ts/src/api/models/Session.ts index 27ed7f7f1..4923838a5 100644 --- a/sdks/ts/src/api/models/Session.ts +++ b/sdks/ts/src/api/models/Session.ts @@ -34,7 +34,7 @@ export type Session = { /** * Optional metadata */ - metadata?: any; + metadata?: Record; /** * Render system and assistant message content as jinja templates */ diff --git a/sdks/ts/src/api/models/UpdateAgentRequest.ts b/sdks/ts/src/api/models/UpdateAgentRequest.ts index d632fc341..1c02fa858 100644 --- a/sdks/ts/src/api/models/UpdateAgentRequest.ts +++ b/sdks/ts/src/api/models/UpdateAgentRequest.ts @@ -26,7 +26,7 @@ export type UpdateAgentRequest = { /** * Optional metadata */ - metadata?: any; + metadata?: Record; /** * Instructions for the agent */ diff --git a/sdks/ts/src/api/models/UpdateSessionRequest.ts b/sdks/ts/src/api/models/UpdateSessionRequest.ts index 50e3bd14f..89f13a857 100644 --- a/sdks/ts/src/api/models/UpdateSessionRequest.ts +++ b/sdks/ts/src/api/models/UpdateSessionRequest.ts @@ -13,7 +13,7 @@ export type UpdateSessionRequest = { /** * Optional metadata */ - metadata?: any; + metadata?: Record; /** * Threshold value for the adaptive context functionality */ diff --git a/sdks/ts/src/api/models/UpdateUserRequest.ts b/sdks/ts/src/api/models/UpdateUserRequest.ts index 335de679b..4b5305a54 100644 --- a/sdks/ts/src/api/models/UpdateUserRequest.ts +++ b/sdks/ts/src/api/models/UpdateUserRequest.ts @@ -17,5 +17,5 @@ export type UpdateUserRequest = { /** * Optional metadata */ - metadata?: any; + metadata?: Record; }; diff --git a/sdks/ts/src/api/models/User.ts b/sdks/ts/src/api/models/User.ts index d9e10fc4f..cb53e2799 100644 --- a/sdks/ts/src/api/models/User.ts +++ b/sdks/ts/src/api/models/User.ts @@ -26,5 +26,5 @@ export type User = { /** * (Optional) metadata */ - metadata?: any; + metadata?: Record; }; diff --git a/sdks/ts/src/api/schemas/$Agent.ts b/sdks/ts/src/api/schemas/$Agent.ts index b323114ee..c699548c9 100644 --- a/sdks/ts/src/api/schemas/$Agent.ts +++ b/sdks/ts/src/api/schemas/$Agent.ts @@ -39,8 +39,10 @@ export const $Agent = { isRequired: true, }, metadata: { - description: `Optional metadata`, - properties: {}, + type: "dictionary", + contains: { + properties: {}, + }, }, instructions: { type: "one-of", diff --git a/sdks/ts/src/api/schemas/$CreateAgentRequest.ts b/sdks/ts/src/api/schemas/$CreateAgentRequest.ts index eabb3004d..f305ebc20 100644 --- a/sdks/ts/src/api/schemas/$CreateAgentRequest.ts +++ b/sdks/ts/src/api/schemas/$CreateAgentRequest.ts @@ -35,8 +35,10 @@ export const $CreateAgentRequest = { }, }, metadata: { - description: `(Optional) metadata`, - properties: {}, + type: "dictionary", + contains: { + properties: {}, + }, }, instructions: { type: "one-of", diff --git a/sdks/ts/src/api/schemas/$CreateDoc.ts b/sdks/ts/src/api/schemas/$CreateDoc.ts index 85d4bafa0..431578afb 100644 --- a/sdks/ts/src/api/schemas/$CreateDoc.ts +++ b/sdks/ts/src/api/schemas/$CreateDoc.ts @@ -28,8 +28,10 @@ export const $CreateDoc = { isRequired: true, }, metadata: { - description: `Optional metadata`, - properties: {}, + type: "dictionary", + contains: { + properties: {}, + }, }, }, } as const; diff --git a/sdks/ts/src/api/schemas/$CreateSessionRequest.ts b/sdks/ts/src/api/schemas/$CreateSessionRequest.ts index 79d56647e..edc694fb7 100644 --- a/sdks/ts/src/api/schemas/$CreateSessionRequest.ts +++ b/sdks/ts/src/api/schemas/$CreateSessionRequest.ts @@ -21,8 +21,10 @@ export const $CreateSessionRequest = { description: `A specific situation that sets the background for this session`, }, metadata: { - description: `Optional metadata`, - properties: {}, + type: "dictionary", + contains: { + properties: {}, + }, }, render_templates: { type: "boolean", diff --git a/sdks/ts/src/api/schemas/$CreateUserRequest.ts b/sdks/ts/src/api/schemas/$CreateUserRequest.ts index 597b94a75..962738359 100644 --- a/sdks/ts/src/api/schemas/$CreateUserRequest.ts +++ b/sdks/ts/src/api/schemas/$CreateUserRequest.ts @@ -20,8 +20,10 @@ export const $CreateUserRequest = { }, }, metadata: { - description: `(Optional) metadata`, - properties: {}, + type: "dictionary", + contains: { + properties: {}, + }, }, }, } as const; diff --git a/sdks/ts/src/api/schemas/$Doc.ts b/sdks/ts/src/api/schemas/$Doc.ts index 8f79f21f9..d7f5b099c 100644 --- a/sdks/ts/src/api/schemas/$Doc.ts +++ b/sdks/ts/src/api/schemas/$Doc.ts @@ -40,8 +40,10 @@ export const $Doc = { format: "date-time", }, metadata: { - description: `optional metadata`, - properties: {}, + type: "dictionary", + contains: { + properties: {}, + }, }, }, } as const; diff --git a/sdks/ts/src/api/schemas/$ExecutionTransition.ts b/sdks/ts/src/api/schemas/$ExecutionTransition.ts index b789afca6..0ee38aed9 100644 --- a/sdks/ts/src/api/schemas/$ExecutionTransition.ts +++ b/sdks/ts/src/api/schemas/$ExecutionTransition.ts @@ -14,36 +14,50 @@ export const $ExecutionTransition = { isRequired: true, format: "uuid", }, - created_at: { - type: "string", + type: { + type: "TransitionType", isRequired: true, - format: "date-time", }, - outputs: { - type: "dictionary", + from: { + type: "array", contains: { properties: {}, }, isRequired: true, }, - from: { + to: { type: "array", contains: { properties: {}, }, isRequired: true, + isNullable: true, }, - to: { - type: "array", + task_token: { + type: "string", + isNullable: true, + }, + outputs: { + type: "dictionary", contains: { properties: {}, }, isRequired: true, - isNullable: true, }, - type: { - type: "TransitionType", + metadata: { + type: "dictionary", + contains: { + properties: {}, + }, + }, + created_at: { + type: "string", isRequired: true, + format: "date-time", + }, + updated_at: { + type: "string", + format: "date-time", }, }, } as const; diff --git a/sdks/ts/src/api/schemas/$PatchAgentRequest.ts b/sdks/ts/src/api/schemas/$PatchAgentRequest.ts index 4124553bc..7277d2aea 100644 --- a/sdks/ts/src/api/schemas/$PatchAgentRequest.ts +++ b/sdks/ts/src/api/schemas/$PatchAgentRequest.ts @@ -22,8 +22,10 @@ export const $PatchAgentRequest = { description: `Default model settings to start every session with`, }, metadata: { - description: `Optional metadata`, - properties: {}, + type: "dictionary", + contains: { + properties: {}, + }, }, instructions: { type: "one-of", diff --git a/sdks/ts/src/api/schemas/$PatchSessionRequest.ts b/sdks/ts/src/api/schemas/$PatchSessionRequest.ts index f6c0b4d75..2127ce498 100644 --- a/sdks/ts/src/api/schemas/$PatchSessionRequest.ts +++ b/sdks/ts/src/api/schemas/$PatchSessionRequest.ts @@ -10,8 +10,10 @@ export const $PatchSessionRequest = { description: `Updated situation for this session`, }, metadata: { - description: `Optional metadata`, - properties: {}, + type: "dictionary", + contains: { + properties: {}, + }, }, token_budget: { type: "number", diff --git a/sdks/ts/src/api/schemas/$PatchUserRequest.ts b/sdks/ts/src/api/schemas/$PatchUserRequest.ts index 29b49acc8..fc1c4e487 100644 --- a/sdks/ts/src/api/schemas/$PatchUserRequest.ts +++ b/sdks/ts/src/api/schemas/$PatchUserRequest.ts @@ -14,8 +14,10 @@ export const $PatchUserRequest = { description: `Name of the user`, }, metadata: { - description: `Optional metadata`, - properties: {}, + type: "dictionary", + contains: { + properties: {}, + }, }, }, } as const; diff --git a/sdks/ts/src/api/schemas/$Session.ts b/sdks/ts/src/api/schemas/$Session.ts index 24354f4f4..3ee4727c2 100644 --- a/sdks/ts/src/api/schemas/$Session.ts +++ b/sdks/ts/src/api/schemas/$Session.ts @@ -40,8 +40,10 @@ export const $Session = { format: "date-time", }, metadata: { - description: `Optional metadata`, - properties: {}, + type: "dictionary", + contains: { + properties: {}, + }, }, render_templates: { type: "boolean", diff --git a/sdks/ts/src/api/schemas/$UpdateAgentRequest.ts b/sdks/ts/src/api/schemas/$UpdateAgentRequest.ts index 5e524eb07..063ba6711 100644 --- a/sdks/ts/src/api/schemas/$UpdateAgentRequest.ts +++ b/sdks/ts/src/api/schemas/$UpdateAgentRequest.ts @@ -24,8 +24,10 @@ export const $UpdateAgentRequest = { description: `Default model settings to start every session with`, }, metadata: { - description: `Optional metadata`, - properties: {}, + type: "dictionary", + contains: { + properties: {}, + }, }, instructions: { type: "one-of", diff --git a/sdks/ts/src/api/schemas/$UpdateSessionRequest.ts b/sdks/ts/src/api/schemas/$UpdateSessionRequest.ts index 9b415c138..64dd9230e 100644 --- a/sdks/ts/src/api/schemas/$UpdateSessionRequest.ts +++ b/sdks/ts/src/api/schemas/$UpdateSessionRequest.ts @@ -11,8 +11,10 @@ export const $UpdateSessionRequest = { isRequired: true, }, metadata: { - description: `Optional metadata`, - properties: {}, + type: "dictionary", + contains: { + properties: {}, + }, }, token_budget: { type: "number", diff --git a/sdks/ts/src/api/schemas/$UpdateUserRequest.ts b/sdks/ts/src/api/schemas/$UpdateUserRequest.ts index d3b6dd857..720d558de 100644 --- a/sdks/ts/src/api/schemas/$UpdateUserRequest.ts +++ b/sdks/ts/src/api/schemas/$UpdateUserRequest.ts @@ -16,8 +16,10 @@ export const $UpdateUserRequest = { isRequired: true, }, metadata: { - description: `Optional metadata`, - properties: {}, + type: "dictionary", + contains: { + properties: {}, + }, }, }, } as const; diff --git a/sdks/ts/src/api/schemas/$User.ts b/sdks/ts/src/api/schemas/$User.ts index e8b7d3d7b..77f4b8377 100644 --- a/sdks/ts/src/api/schemas/$User.ts +++ b/sdks/ts/src/api/schemas/$User.ts @@ -29,8 +29,10 @@ export const $User = { format: "uuid", }, metadata: { - description: `(Optional) metadata`, - properties: {}, + type: "dictionary", + contains: { + properties: {}, + }, }, }, } as const;