Skip to content

Commit 4bfceb1

Browse files
committed
add docs.
1 parent 6189f44 commit 4bfceb1

41 files changed

Lines changed: 2192 additions & 157 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,4 +244,5 @@ CLAUDE.md
244244
# 运行时产生的文件
245245
cache_dir/
246246
local_file/
247-
deployment/
247+
deployment/
248+
docs_app/

docs/docs_en/api/agent/base_agent.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ The position of the class is:
2424

2525
---
2626

27-
## Introduce
27+
## Introduction
2828

2929
`BaseAgent` is the base class of all the agents.
3030

docs/docs_en/api/agent/base_flow.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ The position of the class is:
2525

2626
---
2727

28-
## Introduce
28+
## Introduction
2929

3030
`BaseFlow` is the base flow module for OxyGent framework.
3131

docs/docs_en/api/agent/base_oxy.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ The position of the class is:
2323
```
2424
---
2525

26-
## Introduce
26+
## Introduction
2727
`Oxy` is the abstract base class for all agents and tools in the OxyGent system.
2828

2929
This class defines the core execution lifecycle, permission management,message handling, and data persistence patterns. It provides a unifiedinterface for both local and remote execution with comprehensive logging and error handling capabilities.

docs/docs_en/api/readme.md

Lines changed: 65 additions & 63 deletions
Original file line numberDiff line numberDiff line change
@@ -1,92 +1,94 @@
1-
# OxyGent API Document
1+
# OxyGent API Reference
2+
3+
> Detailed class documentation for all OxyGent components. Each page includes parameters, methods, inheritance hierarchy, and usage examples.
24
35
## Agents
46
---
5-
+ [BaseOxy](./agent/base_oxy.md)
6-
+ [BaseFlow](./agent/base_flow.md)
7-
+ [BaseAgent](./agent/base_agent.md)
8-
+ [LocalAgent](./agent/local_agent.md)
9-
+ [ChatAgent](./agent/chat_agent.md)
10-
+ [RAGAgent](./agent/rag_agent.md)
11-
+ [ReActAgent](./agent/react_agent.md)
12-
+ [ShellUseAgent](./agent/shell_use_agent.md)
13-
+ [SkillAgent](./agent/skill_agent.md)
14-
+ [ParallelAgent](./agent/parallel_agent.md)
15-
+ [WorkflowAgent](./agent/workflow_agent.md)
16-
+ [PlanAndSolveAgent](./agent/plan_and_solve_agent.md)
17-
+ [RemoteAgent](./agent/remote_agent.md)
18-
+ [SSEOxyGent](./agent/sse_oxy_agent.md)
19-
+ [A2AClientAgent](./agent/a2a_client_agent.md)
7+
+ [BaseOxy](./agent/base_oxy.md) — The universal base class for all OxyGent components
8+
+ [BaseFlow](./agent/base_flow.md) — Base class for execution flows
9+
+ [BaseAgent](./agent/base_agent.md) — Base class for all agents
10+
+ [LocalAgent](./agent/local_agent.md) — Agent that runs locally with an LLM
11+
+ [ChatAgent](./agent/chat_agent.md) — Single-turn conversational agent
12+
+ [RAGAgent](./agent/rag_agent.md) — Retrieval-augmented generation agent
13+
+ [ReActAgent](./agent/react_agent.md) — Reasoning + Acting loop with tool calling
14+
+ [ShellUseAgent](./agent/shell_use_agent.md) — SSH remote command execution
15+
+ [SkillAgent](./agent/skill_agent.md) — Dynamically loaded skill agent
16+
+ [ParallelAgent](./agent/parallel_agent.md) — Parallel sub-task execution
17+
+ [WorkflowAgent](./agent/workflow_agent.md) — Custom step-by-step workflows
18+
+ [PlanAndSolveAgent](./agent/plan_and_solve_agent.md) — Plan first, then execute
19+
+ [RemoteAgent](./agent/remote_agent.md) — Connect to agents in other processes
20+
+ [SSEOxyGent](./agent/sse_oxy_agent.md) — SSE-based distributed agent
21+
+ [A2AClientAgent](./agent/a2a_client_agent.md) — A2A protocol client agent
2022

2123
## Tools
2224
---
23-
+ [BaseTool](./tools/base_tools.md)
24-
+ [HttpTool](./api_tools/http_tool.md)
25-
+ [FunctionTool](./function_tools/function_tool.md)
26-
+ [FunctionHub](./function_tools/function_hub.md)
27-
+ [MCPTool](./tools/mcp_tool.md)
28-
+ [BaseMCPClient](./tools/base_mcp_client.md)
29-
+ [StdioMCPClient](./tools/stdio_mcp_client.md)
30-
+ [SSEMCPClient](./tools/sse_mcp_client.md)
31-
+ [StreamableMCPClient](./tools/streamable_mcp_client.md)
32-
+ [BaseBank](./bank_tools/base_bank.md)
33-
+ [BankTool](./bank_tools/bank_tool.md)
34-
+ [BankClient](./bank_tools/bank_client.md)
25+
+ [BaseTool](./tools/base_tools.md) — Base class for all tools
26+
+ [HttpTool](./api_tools/http_tool.md) — HTTP API wrapper tool
27+
+ [FunctionTool](./function_tools/function_tool.md) — Single Python function as a tool
28+
+ [FunctionHub](./function_tools/function_hub.md) — Collection of Python function tools
29+
+ [MCPTool](./tools/mcp_tool.md) — MCP protocol tool wrapper
30+
+ [BaseMCPClient](./tools/base_mcp_client.md) — Base MCP client
31+
+ [StdioMCPClient](./tools/stdio_mcp_client.md) — MCP over stdio transport
32+
+ [SSEMCPClient](./tools/sse_mcp_client.md) — MCP over SSE transport
33+
+ [StreamableMCPClient](./tools/streamable_mcp_client.md) — MCP over Streamable HTTP
34+
+ [BaseBank](./bank_tools/base_bank.md) — Base class for tool banks
35+
+ [BankTool](./bank_tools/bank_tool.md) — Server-side tool bank
36+
+ [BankClient](./bank_tools/bank_client.md) — Client for remote tool banks
3537

3638
## Preset Tools
3739
---
38-
+ [Preset Tools (10 FunctionHub collections)](./preset_tools.md)
40+
+ [Preset Tools (10 FunctionHub collections)](./preset_tools.md) — Built-in tools: file, math, time, shell, python, http, image_gen, ssh, string, system
3941

40-
## Flow
42+
## Flows
4143
---
42-
+ [WorkFlow](./flows/workflow.md)
43-
+ [ParallelFlow](./flows/parallel_flow.md)
44-
+ [PlanAndSolve](./flows/plan_and_solve.md)
45-
+ [Reflexion (+ MathReflexion)](./flows/reflexion.md)
44+
+ [WorkFlow](./flows/workflow.md) — Sequential step execution
45+
+ [ParallelFlow](./flows/parallel_flow.md) — Concurrent step execution
46+
+ [PlanAndSolve](./flows/plan_and_solve.md) — Decompose → plan → solve
47+
+ [Reflexion (+ MathReflexion)](./flows/reflexion.md) — Self-reflection and retry loop
4648

4749
## LLM
4850
---
49-
+ [BaseLLM](./llms/base_llm.md)
50-
+ [RemoteLLM](./llms/remote_llm.md)
51-
+ [HttpLLM](./llms/http_llm.md)
52-
+ [OpenAILLM](./llms/openai_llm.md)
53-
+ [LocalLLM](./llms/local_llm.md)
54-
+ [MockLLM](./llms/mock_llm.md)
51+
+ [BaseLLM](./llms/base_llm.md) — Base class for all LLM integrations
52+
+ [RemoteLLM](./llms/remote_llm.md) — Base for remote API-based LLMs
53+
+ [HttpLLM](./llms/http_llm.md) — Call models via HTTP API
54+
+ [OpenAILLM](./llms/openai_llm.md) — Call models via OpenAI SDK
55+
+ [LocalLLM](./llms/local_llm.md) — Load HuggingFace models locally
56+
+ [MockLLM](./llms/mock_llm.md) — Mock model for testing
5557

5658
## Database
5759
---
58-
+ [BaseDB](./databases/base_db.md)
59-
+ [BaseES](./databases/db_es/base_es.md)
60-
+ [JesES](./databases/db_es/jes_es.md)
61-
+ [LocalES](./databases/db_es/local_es.md)
62-
+ [MemoryEs](./databases/db_es/memory_es.md)
63-
+ [BaseRedis](./databases/db_redis/base_redis.md)
64-
+ [JimdbApRedis](./databases/db_redis/jimdb_ap_redis.md)
65-
+ [LocalRedis](./databases/db_redis/local_redis.md)
66-
+ [BaseVectorDB](./databases/db_vector/base_vector_db.md)
67-
+ [VearchDB](./databases/db_vector/vearch_db.md)
60+
+ [BaseDB](./databases/base_db.md) — Base database interface
61+
+ [BaseES](./databases/db_es/base_es.md) — Elasticsearch base
62+
+ [JesES](./databases/db_es/jes_es.md) — JD Elasticsearch
63+
+ [LocalES](./databases/db_es/local_es.md) — File-based local ES fallback
64+
+ [MemoryEs](./databases/db_es/memory_es.md) — In-memory ES for testing
65+
+ [BaseRedis](./databases/db_redis/base_redis.md) — Redis base
66+
+ [JimdbApRedis](./databases/db_redis/jimdb_ap_redis.md) — JD Redis
67+
+ [LocalRedis](./databases/db_redis/local_redis.md) — File-based local Redis fallback
68+
+ [BaseVectorDB](./databases/db_vector/base_vector_db.md) — Vector database base
69+
+ [VearchDB](./databases/db_vector/vearch_db.md) — Vearch vector DB
6870

6971
## Schemas
7072
---
71-
+ [OxyRequest / OxyResponse / OxyState](./schemas/oxy.md)
72-
+ [LLMState / LLMResponse](./schemas/llm.md)
73-
+ [Message / Memory](./schemas/memory.md)
74-
+ [Observation / ExecResult](./schemas/observation.md)
75-
+ [SkillMetadata](./schemas/skill.md)
76-
+ [Evaluation (Rating models)](./schemas/evaluation.md)
73+
+ [OxyRequest / OxyResponse / OxyState](./schemas/oxy.md) — Core request/response types
74+
+ [LLMState / LLMResponse](./schemas/llm.md) — LLM interaction types
75+
+ [Message / Memory](./schemas/memory.md) — Conversation history and memory
76+
+ [Observation / ExecResult](./schemas/observation.md) — Tool execution results
77+
+ [SkillMetadata](./schemas/skill.md) — Skill definition metadata
78+
+ [Evaluation (Rating models)](./schemas/evaluation.md) — Rating and evaluation types
7779

7880
## MAS System Modules
7981
---
80-
+ [Config](./config.md)
81-
+ [MAS](./mas.md)
82-
+ [DBFactory](./db_factory.md)
83-
+ [EmbeddingCache](./embedding_cache.md)
84-
+ [OxyFactory](./oxy_factory.md)
82+
+ [Config](./config.md) — Global configuration singleton
83+
+ [MAS](./mas.md) — Multi-Agent System runtime container
84+
+ [DBFactory](./db_factory.md) — Database connection factory
85+
+ [EmbeddingCache](./embedding_cache.md) — Embedding vector cache
86+
+ [OxyFactory](./oxy_factory.md) — Component factory for deserialization
8587

8688
## Live Prompt
8789
---
88-
+ [Live Prompt (PromptManager, PromptOptimizer, VersionSync, DynamicAgentManager)](./live_prompt.md)
90+
+ [Live Prompt](./live_prompt.md)PromptManager, PromptOptimizer, VersionSync, DynamicAgentManager
8991

9092
## Transport
9193
---
92-
+ [A2A Protocol (A2AServerGateway, A2AInMemoryStore)](./transport_a2a.md)
94+
+ [A2A Protocol](./transport_a2a.md) — A2AServerGateway, A2AInMemoryStore

docs/docs_en/examples/readme.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,18 @@ This directory contains documentation for all OxyGent example scripts, organized
44

55
---
66

7+
## Start Here
8+
9+
If you're new to OxyGent, try these three examples first:
10+
11+
| Example | What You'll Learn |
12+
|---------|------------------|
13+
| [Single Agent](./agents/demo_single_agent.md) | Minimal ChatAgent with custom prompts and hooks |
14+
| [ReAct Agent with Tools](./agents/demo_react_agent.md) | ReActAgent with reflexion and tool calling |
15+
| [Hierarchical Multi-Agent](./agents/demo_hierarchical_agents.md) | Master-sub agent architecture and delegation |
16+
17+
---
18+
719
## Categories
820

921
| Category | Examples | Description |

docs/docs_en/introduction/a2a/demo-guide.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,3 +104,8 @@ Capability Descriptions:
104104
## Related Examples
105105

106106
- [A2A Examples Overview](../../examples/a2a/readme.md) -- Complete list of A2A-related examples with instructions
107+
108+
---
109+
110+
[Next: A2A Design & Capabilities](./design.md)
111+
[Back to Home](../readme.md)

docs/docs_en/introduction/a2a/design.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,3 +130,8 @@ For existing OxyGent users, A2A integration can be quickly deployed through "min
130130
## Related Examples
131131

132132
- [A2A Server Example](../../examples/a2a/demo_a2a_oxygent_server.md) -- Demonstrates how to start an OxyGent A2A Server
133+
134+
---
135+
136+
[Previous: A2A Quick Start](./demo-guide.md)
137+
[Back to Home](../readme.md)

docs/docs_en/introduction/advanced/multimodal.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,7 @@ if __name__ == "__main__":
125125

126126

127127
[Previous: Retrieving Memory and Regenerating](./continue-exec.md)
128+
[Next: RAG](./rag.md)
128129
[Back to Home](../readme.md)
129130

130131
---

docs/docs_en/introduction/advanced/rag.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
## How to Perform Retrieval-Augmented Generation?
1+
# How to Perform Retrieval-Augmented Generation?
22

33
OxyGent supports injecting knowledge into prompts via the `knowledge` parameter. Below is a simple RAG example:
44

0 commit comments

Comments
 (0)