/** * @aimform/ai — portable Agent SDK entry point. * * Keep this root intentionally small. Advanced/lower-level server primitives * live at `@aimform/ai/server`; React chat UI lives at `@aimform/ai/client`. * This prevents a simple `import { Agent } from "@aimform/ai"` from eagerly * instantiating the full Aimform server or client module graphs. */ export * from "./core/agent"; // Provider extension seam for custom model adapters. Runtime provider helpers // (openai/anthropic/deepseek/qwen/ollama) are exported from ./agent. export type { LLMAdapter } from "./core/agent/model-port"; export type { ModelCapabilities, ModelInfo, ModelProvider } from "./core/agent/model-types"; export type { StructuredGenerationFailure, StructuredGenerationInput, StructuredGenerationProvenance, StructuredGenerationRequest, StructuredGenerationResult, StructuredGenerationSuccess, StructuredSourceReference, } from "./core/structured"; export { DEFAULT_STRUCTURED_INSTRUCTION_VERSION, generateStructured, STRUCTURED_GENERATION_CONTRACT_VERSION, StructuredOutputValidationError, validateStructuredOutput, } from "./core/structured"; export { anthropic, deepseek, ollama, openai, qwen } from "./providers/models/agent-models"; // Shared wire/protocol types remain convenient from the root. Legacy // ToolContext/ToolExecutor/RegisteredTool stay under `/shared` or `/server` so // the public Agent surface has one generic execution context: AgentToolContext. export type { A2AMessage, A2AServerPlugin, AGUIEvent, AgentTaskEventEnvelope, AnyChatEvent, AudioInputContent, BackgroundJobCompletedEvent, ChatEvent, ChatEventType, ChatMessage, ChatSession, ContentBlock, DebugLogLevel, DocumentInputContent, ErrorEvent, FileInputContent, ImageInputContent, InputContent, InputContentSource, JsonPrimitive, JsonSchema, LLMProvider, MessageRole, ResourceCreatedEvent, SessionStatus, StreamChunk, StreamingBlock, StreamingStateReplayEvent, StructuredResponseFormat, TextDeltaEvent, ToolCall, ToolCompleteEvent, ToolDefinition, ToolProgressEvent, ToolResult, ToolStartEvent, TurnCompleteEvent, } from "./shared"; export { DEFAULT_KEEPALIVE_CONFIG, DEFAULT_RECONNECTION_CONFIG, DEFAULT_STREAMING_TIMEOUT, } from "./shared";