From d768c7f3d1ece4735a727a4ae9c3ba0523971f57 Mon Sep 17 00:00:00 2001 From: Diwank Singh Tomer Date: Thu, 31 Oct 2024 17:05:06 -0400 Subject: [PATCH] feat(agents-api): Default prompt_step.tools = 'all' Signed-off-by: Diwank Singh Tomer --- agents-api/agents_api/autogen/Tasks.py | 4 ++-- integrations-service/integrations/autogen/Tasks.py | 4 ++-- typespec/tsp-output/@typespec/openapi3/openapi-1.0.0.yaml | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/agents-api/agents_api/autogen/Tasks.py b/agents-api/agents_api/autogen/Tasks.py index 5fb285ed5..41e9231cc 100644 --- a/agents-api/agents_api/autogen/Tasks.py +++ b/agents-api/agents_api/autogen/Tasks.py @@ -686,7 +686,7 @@ class PromptStep(BaseModel): """ The prompt to run """ - tools: Literal["all"] | list[ToolRef | CreateToolRequest] = [] + tools: Literal["all"] | list[ToolRef | CreateToolRequest] = "all" """ The tools to use for the prompt """ @@ -728,7 +728,7 @@ class PromptStepUpdateItem(BaseModel): """ The prompt to run """ - tools: Literal["all"] | list[ToolRefUpdateItem | CreateToolRequest] = [] + tools: Literal["all"] | list[ToolRefUpdateItem | CreateToolRequest] = "all" """ The tools to use for the prompt """ diff --git a/integrations-service/integrations/autogen/Tasks.py b/integrations-service/integrations/autogen/Tasks.py index 5fb285ed5..41e9231cc 100644 --- a/integrations-service/integrations/autogen/Tasks.py +++ b/integrations-service/integrations/autogen/Tasks.py @@ -686,7 +686,7 @@ class PromptStep(BaseModel): """ The prompt to run """ - tools: Literal["all"] | list[ToolRef | CreateToolRequest] = [] + tools: Literal["all"] | list[ToolRef | CreateToolRequest] = "all" """ The tools to use for the prompt """ @@ -728,7 +728,7 @@ class PromptStepUpdateItem(BaseModel): """ The prompt to run """ - tools: Literal["all"] | list[ToolRefUpdateItem | CreateToolRequest] = [] + tools: Literal["all"] | list[ToolRefUpdateItem | CreateToolRequest] = "all" """ The tools to use for the prompt """ diff --git a/typespec/tsp-output/@typespec/openapi3/openapi-1.0.0.yaml b/typespec/tsp-output/@typespec/openapi3/openapi-1.0.0.yaml index 97dfbf141..8d9b7b541 100644 --- a/typespec/tsp-output/@typespec/openapi3/openapi-1.0.0.yaml +++ b/typespec/tsp-output/@typespec/openapi3/openapi-1.0.0.yaml @@ -4845,7 +4845,7 @@ components: - $ref: '#/components/schemas/Tasks.ToolRef' - $ref: '#/components/schemas/Tools.CreateToolRequest' description: The tools to use for the prompt - default: [] + default: all tool_choice: anyOf: - type: string @@ -4976,7 +4976,7 @@ components: - $ref: '#/components/schemas/Tasks.ToolRefUpdateItem' - $ref: '#/components/schemas/Tools.CreateToolRequest' description: The tools to use for the prompt - default: [] + default: all tool_choice: anyOf: - type: string