Directories
¶
| Path | Synopsis |
|---|---|
|
Package agent provides the core agent framework for AgentFlow.
|
Package agent provides the core agent framework for AgentFlow. |
|
artifacts
Package artifacts provides artifact lifecycle management for AI agents.
|
Package artifacts provides artifact lifecycle management for AI agents. |
|
browser
Package browser provides Agentic Browser with Vision-Action Loop.
|
Package browser provides Agentic Browser with Vision-Action Loop. |
|
context
Package context provides unified context management for agents.
|
Package context provides unified context management for agents. |
|
conversation
Package conversation provides conversation management with branching and rollback.
|
Package conversation provides conversation management with branching and rollback. |
|
crews
Package crews provides role-based agent teams with autonomous negotiation.
|
Package crews provides role-based agent teams with autonomous negotiation. |
|
deliberation
Package deliberation provides CrewAI-style autonomous reasoning mode.
|
Package deliberation provides CrewAI-style autonomous reasoning mode. |
|
deployment
Package deployment provides cloud deployment support for AI agents.
|
Package deployment provides cloud deployment support for AI agents. |
|
evaluation
Package evaluation provides automated evaluation framework for AI agents.
|
Package evaluation provides automated evaluation framework for AI agents. |
|
execution
package execution provides pluggable persistence backends for agent state.
|
package execution provides pluggable persistence backends for agent state. |
|
federation
Package federation provides cross-organization agent collaboration.
|
Package federation provides cross-organization agent collaboration. |
|
guardrails
Package guardrails provides input/output validation and content filtering for agents.
|
Package guardrails provides input/output validation and content filtering for agents. |
|
handoff
Package handoff provides Agent Handoff protocol for task delegation between agents.
|
Package handoff provides Agent Handoff protocol for task delegation between agents. |
|
hitl
Package hitl provides Human-in-the-Loop workflow interrupt and resume capabilities.
|
Package hitl provides Human-in-the-Loop workflow interrupt and resume capabilities. |
|
hosted
Package hosted provides hosted tool implementations like Web Search and File Search.
|
Package hosted provides hosted tool implementations like Web Search and File Search. |
|
k8s
Package k8s provides Kubernetes operator capabilities for agent management.
|
Package k8s provides Kubernetes operator capabilities for agent management. |
|
longrunning
Package longrunning provides support for long-running agent tasks (days-level).
|
Package longrunning provides support for long-running agent tasks (days-level). |
|
memory
Package memory provides layered memory systems for AI agents.
|
Package memory provides layered memory systems for AI agents. |
|
observability
Package observability provides explainability and reasoning trace capabilities.
|
Package observability provides explainability and reasoning trace capabilities. |
|
protocol/a2a
Package a2a provides A2A (Agent-to-Agent) protocol support.
|
Package a2a provides A2A (Agent-to-Agent) protocol support. |
|
reasoning
Package reasoning provides advanced reasoning patterns for AI agents.
|
Package reasoning provides advanced reasoning patterns for AI agents. |
|
skills
Package skills provides standardized skill definitions and discovery.
|
Package skills provides standardized skill definitions and discovery. |
|
streaming
Package streaming provides bidirectional real-time streaming for audio/text.
|
Package streaming provides bidirectional real-time streaming for audio/text. |
|
structured
Package structured provides structured output support with JSON Schema validation.
|
Package structured provides structured output support with JSON Schema validation. |
|
voice
Package voice provides native multimodal audio reasoning (GPT-4o style).
|
Package voice provides native multimodal audio reasoning (GPT-4o style). |
|
cmd
|
|
|
agentflow
command
============================================================================= 🚀 AgentFlow 主入口 ============================================================================= 完整服务入口点,包含 HTTP/gRPC 服务、健康检查、Prometheus 指标
|
============================================================================= 🚀 AgentFlow 主入口 ============================================================================= 完整服务入口点,包含 HTTP/gRPC 服务、健康检查、Prometheus 指标 |
|
============================================================================= 📦 AgentFlow 默认配置 ============================================================================= 提供所有配置项的合理默认值 =============================================================================
|
============================================================================= 📦 AgentFlow 默认配置 ============================================================================= 提供所有配置项的合理默认值 ============================================================================= |
|
examples
|
|
|
01_simple_chat
command
|
|
|
02_streaming
command
|
|
|
04_custom_agent
command
|
|
|
05_workflow
command
|
|
|
06_advanced_features
command
|
|
|
07_mid_priority_features
command
Package main demonstrates medium priority features.
|
Package main demonstrates medium priority features. |
|
08_low_priority_features
command
|
|
|
09_full_integration
command
|
|
|
11_multi_provider_apis
command
|
|
|
12_complete_rag_system
command
|
|
|
13_new_providers
command
|
|
|
14_guardrails
command
Package main demonstrates the Guardrails module for input/output validation.
|
Package main demonstrates the Guardrails module for input/output validation. |
|
15_structured_output
command
Package main demonstrates the Structured Output module for type-safe LLM responses.
|
Package main demonstrates the Structured Output module for type-safe LLM responses. |
|
16_a2a_protocol
command
Package main demonstrates the A2A (Agent-to-Agent) Protocol module.
|
Package main demonstrates the A2A (Agent-to-Agent) Protocol module. |
|
17_high_priority_features
command
Example 17: High Priority Features Demo Demonstrates: Artifacts, HITL Interrupts, OpenAPI Tools, Deployment, Enhanced Checkpoints, Visual Builder
|
Example 17: High Priority Features Demo Demonstrates: Artifacts, HITL Interrupts, OpenAPI Tools, Deployment, Enhanced Checkpoints, Visual Builder |
|
18_advanced_agent_features
command
Package main demonstrates advanced agent features.
|
Package main demonstrates advanced agent features. |
|
19_2026_features
command
Package main demonstrates 2026 advanced features.
|
Package main demonstrates 2026 advanced features. |
|
20_multimodal_providers
command
Example: Using multimodal providers (embedding, rerank, TTS, STT, image)
|
Example: Using multimodal providers (embedding, rerank, TTS, STT, image) |
|
Package llm provides unified LLM provider abstraction and routing.
|
Package llm provides unified LLM provider abstraction and routing. |
|
batch
Package batch provides batch processing for LLM requests.
|
Package batch provides batch processing for LLM requests. |
|
budget
Package budget provides token budget management and cost control.
|
Package budget provides token budget management and cost control. |
|
cache
Package cache provides caching capabilities for LLM operations.
|
Package cache provides caching capabilities for LLM operations. |
|
embedding
Package embedding provides unified embedding provider interfaces and implementations.
|
Package embedding provides unified embedding provider interfaces and implementations. |
|
image
Package image provides unified image generation provider interfaces.
|
Package image provides unified image generation provider interfaces. |
|
middleware
Package middleware provides extensible middleware chain for LLM requests.
|
Package middleware provides extensible middleware chain for LLM requests. |
|
moderation
Package moderation provides content moderation capabilities.
|
Package moderation provides content moderation capabilities. |
|
multimodal
Package multimodal provides multimodal content handling for LLM providers.
|
Package multimodal provides multimodal content handling for LLM providers. |
|
music
Package music provides AI music generation capabilities.
|
Package music provides AI music generation capabilities. |
|
observability
Package observability provides LangSmith-style tracing for multi-turn conversations.
|
Package observability provides LangSmith-style tracing for multi-turn conversations. |
|
rerank
Package rerank provides unified reranker provider interfaces and implementations.
|
Package rerank provides unified reranker provider interfaces and implementations. |
|
router
Package router provides intelligent routing for LLM requests.
|
Package router provides intelligent routing for LLM requests. |
|
speech
Package speech provides unified TTS and STT provider interfaces.
|
Package speech provides unified TTS and STT provider interfaces. |
|
streaming
Package streaming provides backpressure-aware streaming for high-throughput LLM responses.
|
Package streaming provides backpressure-aware streaming for high-throughput LLM responses. |
|
threed
Package threed provides AI 3D model generation capabilities.
|
Package threed provides AI 3D model generation capabilities. |
|
tools
Package tools provides tool execution capabilities for LLM agents.
|
Package tools provides tool execution capabilities for LLM agents. |
|
video
Package video provides unified video processing provider interfaces.
|
Package video provides unified video processing provider interfaces. |
|
package rag provides GraphRAG - Knowledge Graph + Vector hybrid retrieval.
|
package rag provides GraphRAG - Knowledge Graph + Vector hybrid retrieval. |
|
============================================================================= 🧪 测试辅助函数 ============================================================================= 提供通用的测试辅助函数和断言
|
============================================================================= 🧪 测试辅助函数 ============================================================================= 提供通用的测试辅助函数和断言 |
|
fixtures
============================================================================= 📦 测试数据工厂 - Agent 测试数据 ============================================================================= 提供预定义的 Agent 配置和状态,用于测试 =============================================================================
|
============================================================================= 📦 测试数据工厂 - Agent 测试数据 ============================================================================= 提供预定义的 Agent 配置和状态,用于测试 ============================================================================= |
|
mocks
============================================================================= 🧠 MockMemoryManager - 记忆管理器模拟实现 ============================================================================= 用于测试的记忆管理器模拟,支持消息存储和检索
|
============================================================================= 🧠 MockMemoryManager - 记忆管理器模拟实现 ============================================================================= 用于测试的记忆管理器模拟,支持消息存储和检索 |
|
tools
|
|
|
openapi
Package openapi provides automatic tool generation from OpenAPI specifications.
|
Package openapi provides automatic tool generation from OpenAPI specifications. |
|
Package types provides unified type definitions for the AgentFlow framework.
|
Package types provides unified type definitions for the AgentFlow framework. |
|
Package workflow provides workflow orchestration for AI agents.
|
Package workflow provides workflow orchestration for AI agents. |
Click to show internal directories.
Click to hide internal directories.