codex/job-timeout-contract - #34
Conversation
…dels - Introduced `release_notes_url` field in `AgentAbstract` and `AgentResponse` classes to store the URL for release notes corresponding to the agent version.- Updated `AgentRegistrationContract` to include the optional `release_notes_url` field.- Added tests to verify the inclusion of `release_notes_url` in agent registration information and contract schema.
Review Summary by QodoExpose job timeout and release notes metadata for Studio integration
WalkthroughsDescription• Expose job timeout metadata in AgentMethod and registration contract - Add timeout field (defaults to 600 seconds, nullable for manual control) - Include is_async in registration info for Studio consumption • Add release_notes_url field to Agent and registration models - Optional URL field for agent version release notes - Propagated through AgentAbstract, AgentResponse, and AgentRegistrationContract • Update dependencies and development tooling - Bump runtime and dev dependencies to latest versions - Add Black formatter and yamllint to CI pipeline • Add comprehensive test coverage for new metadata fields Diagramflowchart LR
AM["AgentMethod"] -->|adds timeout field| RI["registration_info"]
AA["AgentAbstract"] -->|adds release_notes_url| AR["AgentResponse"]
ARC["AgentRegistrationContract"] -->|includes| RNU["release_notes_url"]
AMC["AgentMethodContract"] -->|includes| TM["timeout + is_async"]
RI -->|exposes to| Studio["Studio"]
AR -->|exposes to| Studio
File Changes1. src/supervaizer/agent.py
|
Code Review by Qodo
1.
|
- Revised the code style section in GEMINI.md to clarify the use of `ruff` for linting and formatting. - Removed the `black` dependency from pyproject.toml and its related configuration. - Updated CI workflow to check `ruff` formatting instead of `black`. - Incremented the test pass count in CHANGELOG.md. - Enhanced the agent's job start method to utilize the correct async handling for custom methods in agent.py. - Added tests to validate the async behavior of custom job methods in test_agent.py.
No description provided.