julep-ai / julep

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

feat(agents-api): Add python expression support to prompt step #795

Closed creatorrr closed 3 weeks ago

creatorrr commented 3 weeks ago

[!IMPORTANT] Add Python expression support to prompt steps in agents API, with default tool settings and refactoring.

  • Behavior:
    • Add Python expression evaluation for prompts starting with $_ in prompt_step() in prompt_step.py.
    • Default tools in PromptStep to 'all' in Tasks.py.
    • Default auto_run_tools to True for PromptStep and False for sessions in Sessions.py and Tasks.py.
  • Refactoring:
    • Remove unused import Developer from execute_system.py.
    • Remove unused import RootModel from Tools.py.
    • Linting changes in integrations-service.
  • Testing:
    • Add test for prompt step with Python expression in test_execution_workflow.py.

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

sweep-ai[bot] commented 3 weeks ago

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

@sweep Add unit tests for `base_evaluate` function in `prompt_step.py` to test Python expression evaluation with different types of expressions and context data.

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