Loading...
Loading...
Eino framework overview, concepts, and navigation. Use when a user asks general questions about Eino, needs help getting started, wants to understand the architecture, or is unsure which Eino skill to use. Eino is a Go framework for building LLM applications with components, orchestration graphs, and an agent development kit.
npx skill4agent add cloudwego/eino-ext eino-guide| Component | What It Does | Key Interface |
|---|---|---|
| ChatModel | LLM inference (generate / stream) | |
| Tool | Functions the model can call | |
| Embedding | Text to vector | |
| Retriever | Vector/keyword search | |
| Indexer | Store documents with vectors | |
| ChatTemplate | Prompt formatting with variables | |
| Document Loader/Transformer | Load and process documents | |
| Callback Handler | Observability and tracing | |
eino-ext/eino-componentRunnable[I, O]| API | Topology | When to Use |
|---|---|---|
| Graph | Directed graph, supports cycles | Complex flows with branching, loops (e.g., ReAct pattern) |
| Chain | Linear sequential | Simple pipelines (e.g., template -> model) |
| Workflow | DAG with field-level mapping | Parallel branches with struct field routing |
/eino-compose| Concept | What It Does |
|---|---|
| ChatModelAgent | ReAct-style agent: model generates, calls tools, loops until done |
| DeepAgent | Pre-built agent with filesystem backend, tool search, summarization |
| Runner | Executes agents, manages checkpoints, emits event streams |
| Middleware (Handlers) | Intercept and extend agent behavior (filesystem, summarization, plan-task, etc.) |
| Interrupt/Resume | Human-in-the-loop: pause agent, get user input, resume from checkpoint |
| AgentAsTool | Wrap an agent as a tool callable by another agent |
/eino-agentschema.Messageschema.Documentschema.ToolInfoschema.StreamReader[T]defer stream.Close()| Repository | Role |
|---|---|
| Core: interfaces, schema, compose engine, ADK, callbacks |
| Implementations: model providers, vector stores, tools, callback handlers |
| Package | Contains |
|---|---|
| Message, Document, ToolInfo, StreamReader |
| ChatModel interfaces |
| Tool interfaces (BaseTool, InvokableTool, StreamableTool, Enhanced variants) |
| Embedder interface |
| Retriever interface |
| Indexer interface |
| Loader, Transformer interfaces |
| ChatTemplate interface |
| Graph, Chain, Workflow, ToolsNode, Runnable, state, checkpoint |
| Handler interface, global/per-run registration |
| Agent, Runner, ChatModelAgent, middleware, interrupt/resume |
| DeepAgent preset |
| Package | Contains |
|---|---|
| ChatModel implementations (openai, claude, gemini, ark, ollama, deepseek, qwen, etc.) |
| Embedding implementations (openai, ark, ollama, etc.) |
| Retriever implementations (redis, milvus2, es8, qdrant) |
| Indexer implementations (redis, milvus2, es8, qdrant) |
| Tool implementations (mcp, googlesearch, duckduckgo, bingsearch, etc.) |
| Callback handlers (cozeloop, apmplus, langfuse, langsmith) |
| Local filesystem Backend for DeepAgent |
| Scenario | Approach | Skill |
|---|---|---|
| Single model call (generate or stream) | Use ChatModel directly | |
| Multi-turn agent with tools | ChatModelAgent + Runner | |
| Production agent with filesystem, tool search | DeepAgent | |
| Linear pipeline (template -> model) | Chain | |
| Complex flow with branching or loops | Graph | |
| Parallel branches with field mapping | Workflow | |
| RAG (embed + index + retrieve) | Indexer + Retriever + Embedding | |
| Agent with human approval | Interrupt/Resume + Runner | |
| Observability and tracing | Callback handlers | |
reference/schema.mdreference/runnable.mdreference/quick-start.md/eino-component/eino-compose/eino-agentgithub.com/cloudwego/einogithub.com/cloudwego/eino-extdefer stream.Close()