feat(clients): Agent Studio v1#6097
Open
Fluf22 wants to merge 77 commits into
Open
Conversation
Collaborator
✔️ Code generated!
📊 Benchmark resultsBenchmarks performed on the method using a mock server, the results might not reflect the real-world performance.
|
Not up to standards ⛔🔴 Issues
|
| Category | Results |
|---|---|
| Security | 3 critical 7 high |
🟢 Metrics 154 complexity
Metric Results Complexity 154
TIP This summary will be updated as you push new changes.
Rewrite array variant resolution for oneOf types: handle multiple array variants by scoring item models against sample data (required-field + property-counting heuristic). New methods: findBestArrayVariant(), scoreOneOfModelMatch(), scoreDirectModelMatch().
… non-standalone client v1
- Replace agent-studio specs from latest upstream export - Add x-acl to secret-keys endpoints - Add x-timeouts and customRequest path to spec.yml - Remove format annotations (date, uuid, uri, date-time) - Fix FacetFilters-OutputUnion circular self-reference - Rename getConfiguration operationId to avoid Go conflict - Add ErrorBase schema reference for Go client compatibility - Add x-enum-varnames for VoteEnum (integer 0/1 → downvote/upvote) - Add modelNameMapping for Python ValidationError/pydantic conflict - Fix wrapcheck lint exclusion for Go ChunkedPush calls - Clean up Go search_helpers template nolint directives
- Remove region param from Go and Python playgrounds
- Fix .java-version suffix (21.0.11 without +10)
- Replace untyped items: {} with self-references in filter union specs
- Simplify toolApprovals to avoid unserializable Any in Kotlin
- Remove uniqueItems from FacetFilters-Input (Set vs ArrayList mismatch)
- Add CTS tests for all new agent-studio operationIds
- Rename updateConfiguration CTS to updateApplicationConfiguration
Instead of hardcoding /agent-studio in CTS JSON paths, the test templates
now prepend {{{serverPathSuffix}}} to path assertions. This handles both
common tests (shared across clients) and agent-studio-specific tests.
The path suffix (e.g. /agent-studio) was in host URLs, but echo interceptors capture paths differently across languages. Moving it to the operation path in API templates ensures consistent behavior: all languages see the full path including the suffix, and test assertions match uniformly.
Adds middleware that strips known path prefixes (e.g. /agent-studio) from incoming requests so mock servers handle prefixed paths transparently.
…onversations, Feedback, User Data)
…a reserved word, and JS bundle size
…e, and update agent-studio specs
…or free-form object types
…, updated agent-studio specs, e2e fixes
…generated method name
…ization in all languages
…ClientCodegen for empty models, revert data class workaround
…tCodegen (vars, requiredVars, optionalVars, etc.)
…allback in Kotlin/Scala - Add unknown parameter detection in ParametersWithDataType using count comparison (single-pass happy path, error-path only iterates on mismatch) - Make Kotlin discriminator deserialization fall through to type matching on unknown values instead of throwing - Make Scala discriminator deserialization fall through via Option/getOrElse, removing the previous dead code (duplicate case with identical guard)
Replace fragile positional List<List<CodegenProperty>> indexing with a named SavedVarLists record, eliminating silent misassignment risk if fields are reordered or extended.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Jira: API-446 API-447 API-448 API-449 API-450 API-451 API-452 API-453 API-456 API-457 API-458 API-459
Summary
Full Agent Studio integration: streaming support, new specs, client generation across all languages.
Specs
formatannotations (uuid, date, date-time, uri) for cleaner generationx-timeouts,customRequestpath, andx-aclon secret-key endpointsgetConfiguration→getApplicationConfigurationto avoid Go method conflictx-enum-varnamesonVoteEnum(integer 0/1 can't be identifiers in most languages)ErrorBaseschema reference for Go client error handlingGenerators & templates
modelNameMappingforValidationError→AgentStudioValidationError(pydantic conflict)wrapchecklint exclusion forChunkedPushcalls (nolint directives get stripped by formatter)search_helpers.mustachenolint placementClients (from prior stacked PRs)