From 513744872574147464c26368b80a2b1b9a3cfbbb Mon Sep 17 00:00:00 2001 From: Vedant Sahai Date: Mon, 4 Nov 2024 18:54:56 -0500 Subject: [PATCH] fix(agents-api): prompt step tool calls (#806) > [!IMPORTANT] > In `prompt_step`, set `formatted_tools` to `None` for non-Anthropic models as tool calls are not implemented. > > - **Behavior**: > - In `prompt_step`, set `formatted_tools` to `None` for non-Anthropic models as tool calls are not implemented. > - **Comments**: > - Added FIXME comment indicating the hardcoded `None` value for `formatted_tools` due to unimplemented tool calls. > > This description was created by [Ellipsis](https://www.ellipsis.dev?ref=julep-ai%2Fjulep&utm_source=github&utm_medium=referral) for 366b8455dbac0b56e32558b38c7e270bcf66e679. It will automatically update as commits are pushed. --- agents-api/agents_api/activities/task_steps/prompt_step.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/agents-api/agents_api/activities/task_steps/prompt_step.py b/agents-api/agents_api/activities/task_steps/prompt_step.py index 0d7144867..6133981f9 100644 --- a/agents-api/agents_api/activities/task_steps/prompt_step.py +++ b/agents-api/agents_api/activities/task_steps/prompt_step.py @@ -248,6 +248,8 @@ async def prompt_step(context: StepContext) -> StepOutcome: ) else: + # FIXME: hardcoded tool to a None value as the tool calls are not implemented yet + formatted_tools = None # Use litellm for other models completion_data: dict = { "model": agent_model,