agentos — AI Agent 工作流中文教程 是 AI Skill Hub 本期精选Agent工作流之一。综合评分 8.1 分,整体质量较高。我们强烈推荐将其纳入你的 AI 工具库,帮助提升工作效率。
agentos — AI Agent 工作流中文教程 是一套完整的 AI Agent 自动化工作流方案。通过可视化的节点编排,将复杂的多步骤任务拆解为清晰的自动化流程,实现全程无人值守的智能处理。支持与数百种外部服务和 API 无缝集成,适合构建数据处理管线、业务自动化和 AI 辅助决策系统。
agentos — AI Agent 工作流中文教程 是一套完整的 AI Agent 自动化工作流方案。通过可视化的节点编排,将复杂的多步骤任务拆解为清晰的自动化流程,实现全程无人值守的智能处理。支持与数百种外部服务和 API 无缝集成,适合构建数据处理管线、业务自动化和 AI 辅助决策系统。
# 方式一:npm 全局安装 npm install -g agentos # 方式二:npx 直接运行(无需安装) npx agentos --help # 方式三:项目依赖安装 npm install agentos # 方式四:从源码运行 git clone https://github.com/framersai/agentos cd agentos npm install npm start
# 命令行使用
agentos --help
# 基本用法
agentos [options] <input>
# Node.js 代码中使用
const agentos = require('agentos');
const result = await agentos.run(options);
console.log(result);
# agentos 配置说明 # 查看配置选项 agentos --config-example > config.yml # 常见配置项 # output_dir: ./output # log_level: info # workers: 4 # 环境变量(覆盖配置文件) export AGENTOS_CONFIG="/path/to/config.yml"
<a href="https://agentos.sh"> <img src="https://raw.githubusercontent.com/framersai/agentos/master/assets/agentos-primary-no-tagline-transparent-2x.png" alt="AgentOS: TypeScript AI Agent Framework with Cognitive Memory" height="100" /> </a>
<br />
| Category | Highlights |
|---|---|
| **LLM Providers** | 16: OpenAI, Anthropic, Gemini, Groq, Ollama, OpenRouter, Together, Mistral, xAI, Claude/Gemini CLI, + 5 image/video |
| **Cognitive Memory** | 8 mechanisms: reconsolidation, retrieval-induced forgetting, involuntary recall, FOK, gist extraction, schema encoding, source decay, emotion regulation |
| **HEXACO Personality** | 6 traits modulate memory, retrieval bias, response style |
| **RAG Pipeline** | 7 vector backends * 4 retrieval strategies * GraphRAG * HyDE * Cohere rerank-v3.5 |
| **Multi-Agent Teams** | 6 coordination strategies * shared memory * inter-agent messaging * HITL gates |
| **Orchestration** | workflow() DAGs * AgentGraph cycles * mission() goal-driven planning * checkpointing |
| **Guardrails** | 5 security tiers * 6 packs (PII, ML classifiers, topicality, code safety, grounding, content policy) |
| **Emergent Capabilities** | Runtime tool forging * 4 self-improvement tools * tiered promotion * skill export |
| **Voice & Telephony** | ElevenLabs, Deepgram, Whisper * Twilio, Telnyx, Plivo |
| **Channels** | 37 platform adapters (Telegram, Discord, Slack, WhatsApp, webchat, ...) |
| **Observability** | OpenTelemetry * usage ledger * cost guard * circuit breaker |
---
npm install @framers/agentos
import { agent } from '@framers/agentos';
const tutor = agent({
provider: 'anthropic', // resolves to claude-sonnet-4-5-20250929 (provider default)
// model: 'claude-opus-4-7', // pin a specific model to override the default
instructions: 'You are a patient CS tutor.',
personality: { openness: 0.9, conscientiousness: 0.95 },
memory: { types: ['episodic', 'semantic'], working: { enabled: true } },
});
// Provider auto-detected from env when `provider` is omitted. Full default-model
// table for every supported provider: https://docs.agentos.sh/features/llm-providers
const session = tutor.session('student-1');
await session.send('Explain recursion with an analogy.');
await session.send('Can you expand on that?'); // remembers context
Full quickstart Examples cookbook API reference
---
Personality is opt-in. The runtime behaves identically with or without a trait vector, and most production deployments do not pass one.
// Personality-neutral (most production agents)
const support = agent({
provider: 'openai', // -> gpt-4o (provider default; `gpt-4o-mini` is the cheap-tier fallback)
instructions: 'Resolve customer tickets.',
memory: { types: ['episodic', 'semantic'] },
});
// Opt-in HEXACO (when persona consistency across sessions matters)
const coach = agent({
provider: 'openai', // -> gpt-4o
instructions: "Long-running career coach. Hold the user accountable to their stated goals across weekly check-ins; flag drift, push back on excuses, escalate when goals shift.",
personality: {
conscientiousness: 0.9, // won't let goals drift between sessions
honesty: 0.85, // honesty-humility: won't tell the user what they want to hear
emotionality: 0.3, // stays steady when the user is reactive
},
memory: { types: ['episodic', 'semantic'] },
});
When a vector is supplied, the kernel weights retrieval, specialist routing, and tool selection by the trait values. Same agent, same prompt, same tools: a high-Openness leader and a high-Conscientiousness leader produce measurably different decision sequences. Personality lives in the kernel, not in the prompt: prompt-only personality dissolves under context pressure while kernel-encoded bias persists. The vector remains editable, inspectable, and removable on consent.
Three layers, highest priority first:
// 1. Inline on the call (per-tenant, per-test, per-customer)
generateText({ apiKey: 'sk-customer', prompt: '...' });
// 2. Module-level default: set once at boot, no .env needed
import { setDefaultProvider } from '@framers/agentos';
setDefaultProvider({ provider: 'openai', apiKey: process.env.MY_OWN_KEY });
// 2b. Reorder the env-var auto-detect chain instead (when you keep multiple keys)
import { setProviderPriority } from '@framers/agentos';
setProviderPriority(['anthropic', 'openai', 'ollama']);
// 3. Environment variable auto-detect chain (default order)
// OpenRouter -> OpenAI -> Anthropic -> Gemini -> Groq -> Together -> Mistral
// -> xAI -> claude CLI -> gemini CLI -> Ollama -> image providers
```bash export OPENAI_API_KEY=sk-... export ANTHROPIC_API_KEY=sk-ant-... export GEMINI_API_KEY=AIza...
agent(): lightweight stateful agent. Prompts, sessions, personality, hooks, tools, memory.agency(): multi-agent teams + full runtime. Emergent tooling, guardrails, RAG, voice, channels, HITL.generateText() / streamText() / generateObject() / generateImage() / generateVideo() / generateMusic() / performOCR() / embedText(): low-level multi-modal helpers with native tool calling.workflow() / AgentGraph / mission(): three orchestration authoring APIs over one graph runtime.Provider fallback is an explicit opt-in via agent({ fallbackProviders: [...] }) (or buildFallbackChain() for programmatic chains). Defaults to off: the runtime never silently retries against a different provider unless you configured a chain.
Most memory libraries retrieve on every query. AgentOS gates memory through three LLM-as-judge classifiers in a single shared pass, so trivial queries skip retrieval entirely and the rest get the right architecture and reader per category.
User query
│
▼ Stage 1: QueryClassifier (gpt-5-mini, ~$0.0001/query)
│ T0=none ─────► answer from context, skip retrieval
│ T1+=needs memory
▼ Stage 2: MemoryRouter -> canonical-hybrid * OM-v10 * OM-v11
▼ Stage 3: ReaderRouter -> gpt-4o (TR/SSU) * gpt-5-mini (SSA/SSP/KU/MS)
▼
Grounded answer
Stages 2 and 3 reuse the Stage 1 classification, so the full pipeline costs one classifier call per query, not three. The T0 / no-memory gate is the novel piece: removing retrieval entirely for greetings and small talk saves the embedding + rerank + reader cost on a substantial fraction of typical agent traffic.
| Primitive | Source | Decision |
|---|---|---|
QueryClassifier | [@framers/agentos/query-router](https://docs.agentos.sh/features/query-routing) | T0/none vs T1/simple vs T2/moderate vs T3/complex |
MemoryRouter | [@framers/agentos/memory-router](https://docs.agentos.sh/features/memory-router) | canonical-hybrid vs observational-memory-v10 vs v11 |
ReaderRouter | [@framers/agentos/memory-router](https://docs.agentos.sh/features/memory-router) | gpt-4o vs gpt-5-mini per category |
Cognitive Memory docs -> Cognitive Pipeline -> Memory System Overview ->
---
QueryRouter is the one-call grounded answer pipeline. Point it at markdown directories, ask a question, get back the answer plus the sources it pulled from, the tier path it took, and any fallback strategies it activated. Use it instead of hand-wiring chunker + vector store + classifier + retriever + LLM call + citation collection for every Q&A surface in your app.
import { QueryRouter } from '@framers/agentos';
const router = new QueryRouter({
knowledgeCorpus: ['./docs', './packages/agentos/docs'],
availableTools: ['web_search', 'deep_research'],
verifyCitations: true,
});
await router.init();
const result = await router.route('how do I configure a guardrail?');
console.log(result.answer); // grounded answer text
console.log(result.sources); // citations with title + URI + snippet
console.log(result.classification); // { tier: 0|1|2|3, strategy, confidence, reasoning }
console.log(result.tiersUsed); // which tiers actually fired
console.log(result.grounding); // per-claim verdicts when verifyCitations is on
The router classifies each query into a tier (T0 trivial -> T3 deep research), retrieves only as much context as that tier needs, and degrades gracefully to keyword search if no embedding key is configured. 260 platform-knowledge entries (tools, skills, FAQ, API, troubleshooting) are bundled with @framers/agentos and merged into your corpus automatically. Query Router docs ->
---
AI Skill Hub 为第三方内容聚合平台,本页面信息基于公开数据整理,不对工具功能和质量作任何法律背书。
建议在沙箱或测试环境中充分验证后,再部署至生产环境,并做好必要的安全评估。
✅ Apache 2.0 — 宽松开源协议,可商用,需保留版权声明和 NOTICE 文件,含专利授权条款。
经综合评估,agentos — AI Agent 工作流中文教程 在Agent工作流赛道中表现稳健,质量优秀。如果你已有明确的使用需求,可以直接上手体验;如果还在评估阶段,建议对比同类工具后再做决策。
| 原始名称 | agentos |
| 原始描述 | Build autonomous AI agents with adaptive intelligence and emergent behaviors, included with multimodal RAG and optional HEXACO personalities. |
| Topics | agent-frameworkagentic-aiagentosagentsai-agentsautonomous-agentsagent |
| GitHub | https://github.com/framersai/agentos |
| License | Apache-2.0 |
| 语言 | TypeScript |
收录时间:2026-05-22 · 更新时间:2026-05-22 · License:Apache-2.0 · AI Skill Hub 不对第三方内容的准确性作法律背书。
选择 Agent 类型,复制安装指令后粘贴到对应客户端