feat(clients): Agent Studio v1#6097
Open
Fluf22 wants to merge 104 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 | 4 critical 10 high |
🟢 Metrics 190 complexity
Metric Results Complexity 190
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
…gent-studio client
56c470b to
eb175d2
Compare
- Add agent_studio_helpers.mustache for all languages with agent-studio
- Wire {{#isAgentStudioClient}} blocks in all api.mustache templates
- Add manual tests for all languages with agent-studio configured
- Add generation.config.mjs protection for C#, JS __tests__, Scala manual dir
- Fix: move Go WithExpiresIn outside {{#isSearchClient}} block
- Fix: remove Dart agent-studio (not configured for Dart)
- Add agent-studio to Dart client config - Add Timeouts.enrichBundle call to AlgoliaDartGenerator (was missing) - Hardcode spec timeouts in RetryStrategy.create (api.mustache) - Add agent-studio deps to pubspec test templates - Fix integer enum deserialization in param_value.mustache - Handle nullable String in empty() (nullable.dart) - Catch ArgumentError in expectError (expect.dart) - Add empty extension.dart for agent-studio package
Replace JVM-only java.util.Base64/javax.crypto/Charsets with: - kotlin.io.encoding.Base64.UrlSafe (multiplatform) - encodeKeySHA256 expect/actual (JVM + native via CommonCrypto) - kotlinx.datetime.Clock.System (multiplatform) - String.encodeToByteArray() (multiplatform)
- Replace ExperimentalEncodingApi with io.ktor.util.encodeBase64 (already used in SearchClient) - Restore KDoc on forgeSecuredUserToken
Kotlin: add global optIn for ExperimentalEncodingApi in build.gradle.kts, remove per-site @OptIn annotations from template and test Swift: replace CryptoKit with String.hmac256(withKey:) from AlgoliaCore (cross-platform via CommonCrypto/Crypto), remove CryptoKit import
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)