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

Make transitions queries async #910

Closed whiterabbit1983 closed 15 hours ago

whiterabbit1983 commented 17 hours ago

[!IMPORTANT] Make transition queries asynchronous by adding async functions and clients, updating decorators, and fixing minor issues.

  • Async Transition Queries:
    • Added create_execution_transition_async in create_execution_transition.py for async transition creation.
    • Updated transition_step in transition_step.py to use create_execution_transition_async.
  • Async Client:
    • Introduced get_async_cozo_client in cozo.py for async Cozo client.
  • Decorators and Utilities:
    • Added cozo_query_async decorator in utils.py for async query handling.
    • Updated increase_counter in counters.py to support async functions.
  • Miscellaneous:
    • Fixed potential None error in chat.py when formatting tools.
    • Added pycozo-async dependency in pyproject.toml.

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