Support parallel tool calls in `DBOSAgent`

Merged
QI
10mo ago
+261-483

This PR enables parallel tool calls for DBOSAgent.

  • Update the DBOS version to 2.10.0. It's the version that supports parallel step execution.

  • Update dbos_test.py to use tmp_path so the SQLite file is automatically cleaned up after tests. Solves #3921

  • Add a new tool execution mode parallel_ordered_events (in addition to parallel (default) and sequential). If it's enabled, then tools are executed in parallel, but the agent would wait for all tools to finish before emitting events in order. This is essential to guarantee a deterministic invocation order (especially for the event_stream_handler) when replaying workflows.

  • Closes #4076

Pre-Review Checklist

  • Any AI generated code has been reviewed line-by-line by the human PR author, who stands by it.
  • No breaking changes in accordance with the version policy.
  • Linting and type checking pass per make format and make typecheck.
  • PR title is fit for the release changelog.

Pre-Merge Checklist

  • New tests for any fix or new behavior, maintaining 100% coverage.
  • Updated documentation for new features and behaviors, including docstrings for API docs.