naftiko: "1.0.0-alpha2" info: label: "Letta API — Chat" description: >- Chat — chat completions wrapper for agents. 1 operations. Lead operation: Create Chat Completion. Self-contained Naftiko capability covering one Letta business surface. tags: - Letta - Stateful Agents - Chat created: "2026-05-08" modified: "2026-05-22" binds: - namespace: env keys: LETTA_API_KEY: LETTA_API_KEY capability: consumes: - type: http namespace: "letta-chat" baseUri: "https://api.letta.com" description: "Letta API — Chat business capability. Self-contained, no shared references." authentication: type: bearer token: "{{env.LETTA_API_KEY}}" resources: - name: "chat-completions" path: "/v1/chat/completions" operations: - name: "create_chat_completion" method: POST description: "Create Chat Completion" inputParameters: - name: "body" in: body type: object required: true description: "Request payload" outputRawFormat: json outputParameters: - name: result type: object value: "$." exposes: - type: rest namespace: "letta-chat-rest" port: 8080 description: "REST adapter for Letta API — Chat. One Spectral-compliant resource per consumed operation." resources: - path: "/v1/chat/completions" name: "chat-completions" description: "REST surface for chat-completions." operations: - method: POST name: "create_chat_completion" description: "Create Chat Completion" call: "letta-chat.create_chat_completion" with: "body": "rest.body" outputParameters: - type: object mapping: "$." - type: mcp namespace: "letta-chat-mcp" port: 9090 transport: http description: "MCP adapter for Letta API — Chat. One verb-noun tool per consumed operation." tools: - name: "create-chat-completion" description: "Create Chat Completion" hints: readOnly: false destructive: false idempotent: false call: "letta-chat.create_chat_completion" with: "body": "tools.body" outputParameters: - type: object mapping: "$."