cloudwego avatar

Eino Compose

This covers the Eino orchestration layer when you need to wire up multi-step pipelines in Go. You get three APIs: Chain for linear flows, Graph for anything with branches or cycles (like ReAct agents), and Workflow for DAGs where you need fine-grained field mapping between different struct types. All three compile down to the same Runnable abstraction with invoke, stream, collect, and transform modes. The framework auto-converts between streaming and non-streaming nodes, which is genuinely convenient. Most real work happens in Graph since branching and state management are table stakes for agents. The reference docs include a complete ReAct example with tool calling and checkpointing, so you're not starting cold.

skills.sh installs
352
GitHub stars
835
last updated
Aug 21, 2026

Install

$ npx -y skills add cloudwego/eino-ext --skill eino-compose --agent claude-code

Installs into .claude/skills of the current project.

Files

Orchestration Overview

The github.com/cloudwego/eino/compose package provides three orchestration APIs:

APITopologyCyclesType Alignment
GraphDirected graphYes (Pregel mode) / No (DAG mode)Whole input/output
ChainLinear sequenceNoWhole input/output
WorkflowDAGNoField-level mapping

*Chain is implemented on top of Graph in Pregel mode but enforces linear topology.

All three compile into Runnable[I, O] which exposes Invoke, Stream, Collect, and Transform.

import "github.com/cloudwego/eino/compose"

Choosing an API

  • Chain -- sequential pipeline: prompt -> model -> parser. Simplest API.
  • Graph -- need branching, loops (ReAct agent), or fan-out/fan-in.
  • Workflow -- need field-level mapping between nodes with different struct types; DAG only.

Graph Quick Reference

g := compose.NewGraph[InputType, OutputType]()

Sponsors

Details

Repository
github.com/cloudwego/eino-ext
Categories
DevOps & CI/CD, Automation & Workflows, Mobile Development
First seen
Jun 3, 2026

More from cloudwego/eino-ext

All 4
1davila7 avatarvoice-ai-developmentdavila7/claude-code-templatesExpert in building voice AI applications - from real-time voice agents to voice-enabled apps. Covers OpenAI Realtime API, Vapi for voice agents, Deepgram for tr351skills.sh installs
2mims-harvard avatartooluniverse-polygenic-risk-scoremims-harvard/tooluniverseBuild and interpret polygenic risk scores (PRS) for complex diseases using GWAS summary statistics. Covers PRS construction (clumping/thresholding, PRS-CS), val351skills.sh installs
3bmad-code-org avatarbmad-quick-devbmad-code-org/bmad-methodDeprecated: forwards to bmad-build. Do not use unless invoked by name.350skills.sh installs
4pmprompt avatarproduct-led-seopmprompt/claude-plugin-product-managementUse when asked to "product-led SEO", "programmatic SEO", "build programmatic pages", "organic acquisition for product", "decide if SEO is worth it", or "optimiz350skills.sh installs
5artwist-polyakov avatarssh-remote-connectionartwist-polyakov/polyakov-claude-skillsSSH connection to remote servers. Use when you need to execute commands on a remote server, check logs, restart services, or manage Docker containers.349skills.sh installs
6davila7 avatarserver-managementdavila7/claude-code-templatesServer management principles and decision-making. Process management, monitoring strategy, and scaling decisions. Teaches thinking, not commands.349skills.sh installs