Skip to content

Conversation

@perrozzi
Copy link
Contributor

@perrozzi perrozzi commented Sep 7, 2025

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.

h3xxit and others added 2 commits September 7, 2025 17:48
📚 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
@perrozzi perrozzi changed the title OpenAI OpenAPI Sep 7, 2025
- 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
Copy link
Contributor

@cubic-dev-ai cubic-dev-ai bot left a 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")
Copy link
Contributor

@cubic-dev-ai cubic-dev-ai bot Sep 7, 2025

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(&quot;https://api.example.com/openapi.json&quot;)
+manual = converter.convert()
+# Your OpenAPI spec is now a UTCP manual with agent-friendly metadata
</file context>
Fix with Cubic

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.
Copy link
Contributor

@cubic-dev-ai cubic-dev-ai bot Sep 7, 2025

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 **&quot;manual&quot;** 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>
Suggested change
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.
Fix with Cubic

@h3xxit h3xxit merged commit 375bb12 into dev Sep 8, 2025
@h3xxit h3xxit deleted the openai branch September 8, 2025 11:32
h3xxit added a commit that referenced this pull request Sep 9, 2025
OpenAPI docs and fix a lot of issues (#47)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants