Skip to content

agent: add optional model usage hooks - #41

Merged
longquanzheng merged 1 commit into
mainfrom
codex/g3-model-hooks
Sep 24, 2026
Merged

longquanzheng merged 1 commit into
mainfrom
codex/g3-model-hooks

Conversation

@longquanzheng

Copy link
Copy Markdown
Contributor

Summary

  • add optional Before/After model hooks with durable Before, Call, After, and Apply Steps
  • persist exact per-call ModelUsage while keeping ModelReply unchanged and the legacy no-hooks path intact
  • return provider usage separately, add stable CallID retry identity, and make OpenAI response storage explicitly enabled by default
  • document the v0.7.0 contract and upgrade path

Verification

  • make check-flow-definition
  • make test
  • make test-race
  • DEX_FLOW_SERVICE_ADDRESS=127.0.0.1:8803 make test-dex-integration
  • DEX_FLOW_SERVICE_ADDRESS=127.0.0.1:8803 make test-full-stack-e2e
  • make check

@longquanzheng
longquanzheng merged commit aae95d2 into main Sep 24, 2026
2 checks passed
@longquanzheng
longquanzheng deleted the codex/g3-model-hooks branch September 24, 2026 07:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant