Skip to content

feat(generated): Agents (batch 89943d4b) - #721

Closed
workos-sdk-automation[bot] wants to merge 2 commits into
mainfrom
oagen/batch-89943d4b
Closed

feat(generated): Agents (batch 89943d4b)#721
workos-sdk-automation[bot] wants to merge 2 commits into
mainfrom
oagen/batch-89943d4b

Conversation

@workos-sdk-automation

Copy link
Copy Markdown
Contributor

Summary

Regenerated SDK from spec changes.

Triggered by workos/openapi-spec@b6350ef

@workos-sdk-automation workos-sdk-automation Bot added the autogenerated Autogenerated code or content label Sep 1, 2026
@workos-sdk-automation
workos-sdk-automation Bot requested review from a team as code owners September 1, 2026 21:39
@workos-sdk-automation workos-sdk-automation Bot added the autogenerated Autogenerated code or content label Sep 1, 2026
@greptile-apps

greptile-apps Bot commented Sep 1, 2026

Copy link
Copy Markdown
Contributor

Greptile Summary

The regenerated SDK adds synchronous and asynchronous agent-token validation, introduces typed request and response models, and makes blueprint session settings optional.

  • Adds POST /agents/blueprints/{agent_blueprint_id}/tokens/validate to both Agents resource variants.
  • Adds and exports the AgentTokenValidation and token-validation request models.
  • Updates generated common-model exports, fixtures, and round-trip/resource tests.

Confidence Score: 5/5

The PR appears safe to merge; no concrete blocking or independently actionable non-blocking issue was identified.

The new endpoint, models, optional request field, exports, and synchronous/asynchronous implementations are internally aligned and covered by focused generated tests.

Important Files Changed

Filename Overview
src/workos/agents/_resource.py Adds matching sync and async token-validation methods and makes blueprint session settings optional in both call paths.
src/workos/agents/models/agent_token_validation.py Adds the typed successful token-validation response model with required claims and nullable contextual fields.
src/workos/agents/models/agent_blueprints_create_request.py Updates deserialization and serialization so omitted session settings remain optional.
src/workos/common/models/init.py Re-exports additional generated event type aliases using the repository’s established convention.
tests/test_agents.py Covers the new endpoint’s sync and async request paths and the optional blueprint session settings.
tests/test_agents_models_round_trip.py Adds serialization round-trip coverage for complete and nullable token-validation payloads.

Reviews (1): Last reviewed commit: "chore(generated): add release notes frag..." | Re-trigger Greptile

@gjtorikian gjtorikian closed this Sep 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

autogenerated Autogenerated code or content

Development

Successfully merging this pull request may close these issues.

1 participant