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,typespec): Add support for computer-use in session.chat #822

Closed creatorrr closed 2 weeks ago

creatorrr commented 2 weeks ago

Signed-off-by: Diwank Singh Tomer diwank.singh@gmail.com


[!IMPORTANT] Adds support for tool calls in session chat, updates models and functions, and includes a migration script.

  • Behavior:
    • Adds support for tool calls in BaseChatOutput, Delta, Message, MessageModel, PromptItem, and BaseEntry classes.
    • Updates role field to include 'tool' in Delta, Message, MessageModel, PromptItem, and BaseEntry.
    • Modifies content handling to support None and new tool call structures in Delta, Message, MessageModel, PromptItem, and BaseEntry.
  • Migration:
    • Adds migration script migrate_1731143165_support_tool_call_id.py to support tool_call_id and tool_calls fields.
  • Dependencies:
    • Updates litellm version in pyproject.toml and docker-compose.yml.
  • Misc:
    • Updates content_to_json() in messages.py to handle None content.
    • Adjusts gather_messages() in gather_messages.py to handle tool calls.
    • Adds arguments field to FunctionCallOption in Tools.py.

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