AIGC: Label: "1" ContentProducer: 001191440300708461136T1XGW3 ProduceID: 3e9b297b16411e0e0848fc0302358070_9f6cc124744311f1897e5254002afed2 ReservedCode1: IMz08bNnClQ30HefCeW7qyiOyWeXzDuNrXHE5WRO5QkzLJqdjephTgTAmi0TrkvcT0NZ+gKPRuzSPQM4VBEYtDZfVOw9lVTsYJcGnxbUAGFnrM+V13g78mBsOnYa9BL56dEcqwICuI6mRlFWgvODbNtl8KRQ8OsZ13fBwaHtSlr9GXQUZ/plPV+ctJQ= ContentPropagator: 001191440300708461136T1XGW3 PropagateID: 3e9b297b16411e0e0848fc0302358070_9f6cc124744311f1897e5254002afed2 ReservedCode2: IMz08bNnClQ30HefCeW7qyiOyWeXzDuNrXHE5WRO5QkzLJqdjephTgTAmi0TrkvcT0NZ+gKPRuzSPQM4VBEYtDZfVOw9lVTsYJcGnxbUAGFnrM+V13g78mBsOnYa9BL56dEcqwICuI6mRlFWgvODbNtl8KRQ8OsZ13fBwaHtSlr9GXQUZ/plPV+ctJQ=
AgentOS v1.0
Production-ready multi-model agent framework.
Quick Start
pip install agentos
With an API key:
export OPENAI_API_KEY=sk-...
agentos "What's the weather in Beijing?"
Without an API key (mock demo mode):
agentos demo
Features
- LLM Provider: OpenAI / DeepSeek / Anthropic, unified interface
- Tool-Using Agent: Autonomous multi-step reasoning with Function Calling
- Streaming:
run_stream()for real-time step yielding - Retry & Checkpoint: Configurable retry + JSON checkpoint/resume
- Mock Mode: Test without API keys
- A2A Protocol: Agent-to-agent communication
- Swarm Coordination: Multi-agent topologies
CLI
agentos <task> Run a task
agentos demo Weather agent demo
agentos serve Start API server
agentos version Show version
Provider Auto-Detection
| Env Var | Provider | Default Model |
|---|---|---|
OPENAI_API_KEY |
OpenAI | gpt-4o-mini |
DEEPSEEK_API_KEY |
DeepSeek | deepseek-chat |
ANTHROPIC_API_KEY |
Anthropic | claude-sonnet-4 |
Python API
from agentos.llm import create_provider
from agentos.llm.base import Tool, ToolParameter
from agentos.agent import ToolAgent, ToolExecutor, AgentConfig
provider = create_provider("openai")
executor = ToolExecutor()
executor.register(
Tool.from_function("get_weather", "Get weather", {
"city": ToolParameter(type="string", description="City name"),
}),
lambda city: f"{city}: 22°C sunny",
)
agent = ToolAgent(provider, executor, config=AgentConfig())
result = agent.run("What's the weather in Tokyo?")
print(result.final_answer)
(内容由AI生成,仅供参考)
Metadata
Release files for agentos-framework 1.0.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| agentos_framework-1.0.5-py3-none-any.whl | Python 3 | none | any | Details |
Release files / agentos_framework-1.0.5-py3-none-any.whl
| Download URL | agentos_framework-1.0.5-py3-none-any.whl |
|---|---|
| Size | 380.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f8210c67930ccd40bb145adb292c7c65436da0b77d94d99f535dc0abb5c72b0e
|
|
BLAKE2b-256 checksum How to use checksums |
b439767d6e1775f4067e20132c8865fc511f325977e704f1068e446fbe14179f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.6
|