Skip to content

Commit

Permalink
fix(agents-api): prompt step tool calls (#806)
Browse files Browse the repository at this point in the history
<!-- ELLIPSIS_HIDDEN -->



> [!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.
> 
> <sup>This description was created by </sup>[<img alt="Ellipsis"
src="https://img.shields.io/badge/Ellipsis-blue?color=175173">](https://www.ellipsis.dev?ref=julep-ai%2Fjulep&utm_source=github&utm_medium=referral)<sup>
for 366b845. It will automatically
update as commits are pushed.</sup>

<!-- ELLIPSIS_HIDDEN -->
  • Loading branch information
Vedantsahai18 authored Nov 4, 2024
1 parent 5eec4fb commit 5137448
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions agents-api/agents_api/activities/task_steps/prompt_step.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 5137448

Please sign in to comment.