|
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. |
2 | 4 |
|
3 | 5 | ## Agents |
4 | 6 | --- |
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 |
20 | 22 |
|
21 | 23 | ## Tools |
22 | 24 | --- |
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 |
35 | 37 |
|
36 | 38 | ## Preset Tools |
37 | 39 | --- |
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 |
39 | 41 |
|
40 | | -## Flow |
| 42 | +## Flows |
41 | 43 | --- |
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 |
46 | 48 |
|
47 | 49 | ## LLM |
48 | 50 | --- |
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 |
55 | 57 |
|
56 | 58 | ## Database |
57 | 59 | --- |
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 |
68 | 70 |
|
69 | 71 | ## Schemas |
70 | 72 | --- |
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 |
77 | 79 |
|
78 | 80 | ## MAS System Modules |
79 | 81 | --- |
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 |
85 | 87 |
|
86 | 88 | ## Live Prompt |
87 | 89 | --- |
88 | | -+ [Live Prompt (PromptManager, PromptOptimizer, VersionSync, DynamicAgentManager)](./live_prompt.md) |
| 90 | ++ [Live Prompt](./live_prompt.md) — PromptManager, PromptOptimizer, VersionSync, DynamicAgentManager |
89 | 91 |
|
90 | 92 | ## Transport |
91 | 93 | --- |
92 | | -+ [A2A Protocol (A2AServerGateway, A2AInMemoryStore)](./transport_a2a.md) |
| 94 | ++ [A2A Protocol](./transport_a2a.md) — A2AServerGateway, A2AInMemoryStore |
0 commit comments