feat(generated): Agents (batch 89943d4b) - #610
feat(generated): Agents (batch 89943d4b)#610workos-sdk-automation[bot] wants to merge 2 commits into
Conversation
Greptile SummaryThe PR regenerates the Agents SDK surface to add blueprint-token validation and make blueprint session settings optional.
Confidence Score: 4/5The PR appears safe to merge, with a non-blocking test gap around verification of the required token request payload. The generated endpoint and models are internally consistent, but the new test would not detect regressions in Files Needing Attention: agents_test.go Important Files Changed
Prompt To Fix All With AI### Issue 1
agents_test.go:188
**Required token payload untested**
The test passes an empty parameter object and never asserts the decoded request body, so a regression that omits, renames, or incorrectly tags the required `agent_access_token` field will continue to pass while callers send malformed validation requests.
---
For each issue above, determine whether it is valid and should be fixed. If so, fix it directly.Reviews (1): Last reviewed commit: "chore(generated): add release notes frag..." | Re-trigger Greptile |
|
|
||
| client := workos.NewClient("sk_test", workos.WithBaseURL(server.URL)) | ||
| result, err := client.Agents().ValidateBlueprintToken(context.Background(), "test_agent_blueprint_id", &workos.AgentsValidateBlueprintTokenParams{}) | ||
| require.NoError(t, err) |
There was a problem hiding this comment.
Required token payload untested
The test passes an empty parameter object and never asserts the decoded request body, so a regression that omits, renames, or incorrectly tags the required agent_access_token field will continue to pass while callers send malformed validation requests.
Prompt To Fix With AI
This is a comment left during a code review.
Path: agents_test.go
Line: 188
Comment:
**Required token payload untested**
The test passes an empty parameter object and never asserts the decoded request body, so a regression that omits, renames, or incorrectly tags the required `agent_access_token` field will continue to pass while callers send malformed validation requests.
---
For each issue above, determine whether it is valid and should be fixed. If so, fix it directly.
Summary
Regenerated SDK from spec changes.
Triggered by workos/openapi-spec@b6350ef