-
Notifications
You must be signed in to change notification settings - Fork 16
OpenAPI #47
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
📚 Enhance v1.0 Documentation: Add Protocol Guides, Implementation Exa…
- Add OpenAPI compatibility section explaining UTCP as agent-focused extension - Include minimal OpenAPI ingestion example in Quick Start - Position information early in documentation for better user understanding
- Change 'are automatically converted' to 'can be automatically converted' - More accurate description of optional conversion process
- Add 'or additional infrastructure' to OpenAPI compatibility section - Reinforces UTCP's core value proposition of no wrapper tax
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
2 issues found across 1 file
React with 👍 or 👎 to teach cubic. You can also tag @cubic-dev-ai to give feedback, ask questions, or re-run the review.
docs/index.md
Outdated
| ```python | ||
| from utcp_http.openapi_converter import OpenApiConverter | ||
|
|
||
| converter = OpenApiConverter.from_url("https://api.example.com/openapi.json") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Undocumented API usage: OpenApiConverter.from_url is not documented elsewhere, which risks copy-paste errors for readers; use the documented constructor pattern or document from_url.
Prompt for AI agents
Address the following comment on docs/index.md at line 55:
<comment>Undocumented API usage: OpenApiConverter.from_url is not documented elsewhere, which risks copy-paste errors for readers; use the documented constructor pattern or document from_url.</comment>
<file context>
@@ -44,7 +48,16 @@ npm install @utcp/core @utcp/http
+```python
+from utcp_http.openapi_converter import OpenApiConverter
+
+converter = OpenApiConverter.from_url("https://api.example.com/openapi.json")
+manual = converter.convert()
+# Your OpenAPI spec is now a UTCP manual with agent-friendly metadata
</file context>
docs/index.md
Outdated
|
|
||
| ## OpenAPI Compatibility | ||
|
|
||
| UTCP extends OpenAPI for AI agents while maintaining full backward compatibility. Where OpenAPI describes APIs for human developers, UTCP adds agent-focused enhancements: `tags` for categorization, `average_response_size` for resource planning, multi-protocol support (CLI, gRPC, WebSocket), and direct execution instructions. Existing OpenAPI specs are automatically converted to UTCP manuals without requiring API changes. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Mentioning gRPC here can mislead readers since gRPC isn’t listed in the current Supported Protocols; align the examples with documented/stable protocols.
Prompt for AI agents
Address the following comment on docs/index.md at line 33:
<comment>Mentioning gRPC here can mislead readers since gRPC isn’t listed in the current Supported Protocols; align the examples with documented/stable protocols.</comment>
<file context>
@@ -28,6 +28,10 @@ UTCP acts as a **"manual"** that tells agents how to call your tools directly:
+## OpenAPI Compatibility
+
+UTCP extends OpenAPI for AI agents while maintaining full backward compatibility. Where OpenAPI describes APIs for human developers, UTCP adds agent-focused enhancements: `tags` for categorization, `average_response_size` for resource planning, multi-protocol support (CLI, gRPC, WebSocket), and direct execution instructions. Existing OpenAPI specs are automatically converted to UTCP manuals without requiring API changes.
+
## Quick Start (5 Minutes)
</file context>
| UTCP extends OpenAPI for AI agents while maintaining full backward compatibility. Where OpenAPI describes APIs for human developers, UTCP adds agent-focused enhancements: `tags` for categorization, `average_response_size` for resource planning, multi-protocol support (CLI, gRPC, WebSocket), and direct execution instructions. Existing OpenAPI specs are automatically converted to UTCP manuals without requiring API changes. | |
| UTCP extends OpenAPI for AI agents while maintaining full backward compatibility. Where OpenAPI describes APIs for human developers, UTCP adds agent-focused enhancements: `tags` for categorization, `average_response_size` for resource planning, multi-protocol support (CLI, HTTP, WebSocket), and direct execution instructions. Existing OpenAPI specs are automatically converted to UTCP manuals without requiring API changes. |
OpenAPI docs and fix a lot of issues (#47)
Summary by cubic
Added an OpenAPI Compatibility section explaining how UTCP extends OpenAPI while staying fully backward compatible, plus a Quick Start example to convert an existing OpenAPI spec into a UTCP manual. This clarifies migration and surfaces the guidance earlier in the docs.