-
-
Notifications
You must be signed in to change notification settings - Fork 1
feat:Update AI21 OpenAPI: new endpoints, tool refactors, request fields #200
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
base: main
Are you sure you want to change the base?
Conversation
WalkthroughThis update expands the OpenAPI spec in src/libs/AI21/openapi.yaml with new assistants lifecycle endpoints, routes management, plan validation, an MCP discovery endpoint, a vector-store retrieval endpoint, extensive tool/type refactors introducing discriminated unions and tool resources, additional request fields (e.g., vector_store_id), and a new ConversationalRagConfig field. Changes
Sequence Diagram(s)sequenceDiagram
autonumber
actor Client
participant API as Studio API
participant Assist as Assistants Service
participant Exec as Execution Engine
participant Tools as Tool Resources
Client->>API: POST /studio/v1/assistants (CreateAssistantRequest)
API->>Assist: Create assistant
Assist-->>API: Assistant created
API-->>Client: 201 Assistant
Client->>API: PATCH /studio/v1/assistants/{id} (ModifyAssistantRequest)
API->>Assist: Modify assistant
Assist-->>API: Updated assistant
API-->>Client: 200 Assistant
Client->>API: POST /studio/v1/assistants/{id}/run (RunAssistantRequest)
API->>Assist: Start run
Assist->>Exec: Execute plan (optimization/budget/requirements)
Exec->>Tools: Invoke tool via ToolDefinition (HTTP/MCP/File/Web)
Tools-->>Exec: Tool result or error
Exec-->>Assist: Run result (may include MaestroRunError)
Assist-->>API: MaestroRunResult
API-->>Client: 200 Run result
Client->>API: POST /studio/v1/assistants/{id}/validate_plan
API->>Assist: Validate plan
Assist-->>API: Validation result
API-->>Client: 200 Validation
sequenceDiagram
autonumber
actor Client
participant API as Studio API
participant MCP as MCP Discovery
Client->>API: POST /studio/v1/mcp/discover (MCPDefinition)
API->>MCP: Discover tools (server_url, headers)
MCP-->>API: MCPDiscoveryResponse (tools)
API-->>Client: 200 MCPDiscoveryResponse
Estimated code review effort🎯 4 (Complex) | ⏱️ ~60 minutes Poem
Pre-merge checks and finishing touches❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✨ Finishing touches🧪 Generate unit tests
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro ⛔ Files ignored due to path filters (136)
📒 Files selected for processing (1)
🔇 Additional comments (4)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Summary by CodeRabbit
New Features
Refactor