Add agents behind existing product APIs
Keep your domain endpoints. Expose AI optimization, recommendation, or classification as new resource operations — no separate “agent server” surface.
YAAgents is a gateway, SDK layer, and response contract for exposing agentic capabilities as governed domain resource operations. You keep whatever agent framework you want — LangGraph, Pydantic AI, Semantic Kernel, a direct LLM call, or custom logic. YAAgents governs the application-to-agent boundary: auth, tenant context, audit, typed responses, and OpenAPI contracts.
POST /campaigns/{id}/optimizations ← YAAgents patternPOST /tickets/{id}:triage ← YAAgents patternPOST /agents/invoke ← what YAAgents replacesflowchart LR A["Application\n(any client)"] --> B["YAAgents Gateway\n(auth · tenant · audit)"] B --> C["Agentic API Service\n(your code)"] C --> D["Agent Implementation\n(your choice)"] D --> E["Optional: A2A / MCP / Tools"]YAAgents governs the application-to-agent boundary. Agent frameworks, A2A, AGNTCY, and MCP can operate behind that boundary.
Application layer — any HTTP client (Python, TypeScript, Go, curl). Sends typed requests to resource-oriented endpoints. Receives typed, structured responses — no free-form text parsing.
YAAgents Gateway — Go process fronting every agentic API. Handles JWT authentication, tenant context injection, license verification, prompt sanitization, and audit logging via composable plugins.
Agentic API Service — your service code, using the sdk-fastapi (Python) or sdk-go (Go) server SDK. Implements resource-oriented handlers; returns typed AgenticResponse outcomes.
Agent Implementation — whatever reasoning pipeline fits your domain. LangGraph, LangChain, Semantic Kernel, Pydantic AI, direct LLM SDK calls, or custom logic. YAAgents has no opinion here.
Optional ecosystem — A2A, AGNTCY, MCP tool servers, vector stores, or any other agent-to-agent or agent-to-tool protocol. These operate behind the yaagents boundary, invisible to the client.
Add agents behind existing product APIs
Keep your domain endpoints. Expose AI optimization, recommendation, or classification as new resource operations — no separate “agent server” surface.
Govern many agent services in one place
Centralize auth, tenancy, audit, and license enforcement in the gateway. Your agent services stay simple; the gateway handles the policy layer.
Keep OpenAPI and SDK discipline
Typed response outcomes, OpenAPI-first contracts, generated native clients. No free-form text parsing; no ad-hoc JSON shapes.
Wrap any agent framework
LangGraph, Pydantic AI, Semantic Kernel, or custom logic — yaagents is the governed boundary, not the reasoning engine. Swap frameworks without changing your API contract.