diff --git a/typespec/executions/models.tsp b/typespec/executions/models.tsp index a77ed432d..5dba37513 100644 --- a/typespec/executions/models.tsp +++ b/typespec/executions/models.tsp @@ -112,7 +112,7 @@ model Transition { execution_id: Execution.id; @visibility("read") - outputs: Record; + output: Record; @visibility("read") current: TransitionTarget; @@ -122,4 +122,4 @@ model Transition { ...HasId; ...HasTimestamps; -} \ No newline at end of file +} diff --git a/typespec/sessions/models.tsp b/typespec/sessions/models.tsp index b6da20809..f19ec1d99 100644 --- a/typespec/sessions/models.tsp +++ b/typespec/sessions/models.tsp @@ -54,7 +54,7 @@ model Session { /** Threshold value for the adaptive context functionality */ token_budget: uint16 | null = null; - + /** Action to start on context window overflow */ context_overflow: ContextOverflowType | null = null; @@ -150,4 +150,4 @@ model CreateOrUpdateSessionRequest { id: uuid; ...CreateSessionRequest; -} \ No newline at end of file +} diff --git a/typespec/tasks/models.tsp b/typespec/tasks/models.tsp index 7aa35d656..0135da392 100644 --- a/typespec/tasks/models.tsp +++ b/typespec/tasks/models.tsp @@ -130,19 +130,19 @@ model Task { name: string; description: string = ""; - + /** The entrypoint of the task. */ main: WorkflowStep[]; - + /** The schema for the input to the task. `null` means all inputs are valid. */ input_schema: Record | null = null; - + /** Tools defined specifically for this task not included in the Agent itself. */ tools: CreateToolRequest[] = #[]; /** Whether to inherit tools from the parent agent or not. Defaults to true. */ inherit_tools: boolean = true; - + @visibility("read") agent_id: Agent.id; @@ -170,4 +170,4 @@ model CreateTaskRequest { model CreateOrUpdateTaskRequest { id: uuid; ...CreateTaskRequest; -} \ No newline at end of file +} diff --git a/typespec/tools/models.tsp b/typespec/tools/models.tsp index 626d3ec4c..509520304 100644 --- a/typespec/tools/models.tsp +++ b/typespec/tools/models.tsp @@ -34,11 +34,12 @@ model FunctionDef { /** DO NOT USE: This will be overriden by the tool name. Here only for compatibility reasons. */ name?: validPythonIdentifier = "overriden"; + /** Description of the function */ + description?: identifierSafeUnicode; + /** The parameters the function accepts */ parameters: FunctionParameters; - /** Description of the function */ - description?: identifierSafeUnicode; } @discriminator("type") @@ -46,8 +47,8 @@ model Tool { /** Whether this tool is a `function`, `api_call`, `system` etc. (Only `function` tool supported right now) */ type: ToolType; - /** The tool should be run in the background (not supported at the moment) */ - background: boolean = false; + /** Name of the tool (must be unique for this agent and a valid python identifier string )*/ + name: validPythonIdentifier; function?: FunctionDef; integration?: unknown; @@ -76,9 +77,6 @@ model NamedToolChoice { /** Whether this tool is a `function`, `api_call`, `system` etc. (Only `function` tool supported right now) */ type: ToolType; - /** The name of the tool/function */ - name: validPythonIdentifier; - function?: FunctionCallOption; integration?: unknown; system?: unknown; @@ -133,4 +131,4 @@ model ChosenFunctionCall extends ChosenToolCall { /** The function to call */ function: FunctionCallOption; -} \ No newline at end of file +}