julep-ai / julep

A new DSL and server for AI agents and multi-step tasks
https://julep.ai
Apache License 2.0
2.67k stars 904 forks source link

feat(agents-api): prompt step claude hotfix for tools #800

Closed Vedantsahai18 closed 3 weeks ago

Vedantsahai18 commented 3 weeks ago

[!IMPORTANT] Filters tools in prompt_step() to specific types before passing to Claude API in prompt_step.py.

  • Behavior:
    • In prompt_step() in prompt_step.py, filters formatted_tools to include only computer_20241022, bash_20241022, and text_editor_20241022 types before passing to Claude API.
    • Ensures only these tool types are used in Claude API calls, potentially affecting tool usage in responses.

This description was created by Ellipsis for 355c9709f89ff95e74f4e9864c9f487ad48de3ab. It will automatically update as commits are pushed.

sweep-ai[bot] commented 3 weeks ago

Hey @Vedantsahai18, here is an example of how you can ask me to improve this pull request:

@sweep Add unit tests for the tool filtering logic in `prompt_step()` that verify:
1. Only tools of types "computer_20241022", "bash_20241022", and "text_editor_20241022" are included in the filtered output
2. Tools of other types are properly excluded
3. Empty tool list case works correctly

:book: For more information on how to use Sweep, please read our documentation.