Expanded SDK to cover many new API endpoints#3
Merged
Conversation
There was a problem hiding this comment.
Pull request overview
This PR expands the public Go SDK surface to provide broader endpoint coverage, improved streaming support, and more ergonomic typed models, along with documentation and test updates to match the new API.
Changes:
- Added many new typed model aliases in
types.goto avoid importing thegeneratedpackage directly. - Expanded
Clientwith convenience methods across Agents, Evaluations, KBs, Memory Banks, Sources/Exports, Content, Solutions, Governance, Alerts/Models, Search, and top-level AI assistant endpoints. - Improved tooling/tests:
specfixnow normalizes OpenAPI 3.1 exclusive bounds, andclient_typed_test.goadds extensive endpoint/streaming coverage; docs updated accordingly.
Reviewed changes
Copilot reviewed 8 out of 10 changed files in this pull request and generated 8 comments.
Show a summary per file
| File | Description |
|---|---|
types.go |
Adds a large set of public type aliases for generated OpenAPI models. |
errors.go |
Adds inline field docs and introduces StreamingError for SSE failures. |
doc.go |
Expands package-level docs: auth, usage examples, and typed error overview. |
cmd/specfix/main.go |
Adds transformation of numeric exclusive bounds (3.1) to 3.0-compatible boolean form. |
cmd/specfix/main_test.go |
Adds tests validating the exclusive bound transformations. |
client.go |
Major expansion of typed convenience methods, default headers support, uploads refactor, polling helper, and channel-based streaming. |
client_typed_test.go |
Updates existing tests and adds many new endpoint/streaming/polling/header tests. |
README.md |
Rewrites/expands documentation and examples to reflect new API surface. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
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.
No description provided.