autoagent-core 0.11.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- autoagent/__init__.py +137 -0
- autoagent/agent.py +1246 -0
- autoagent/approval.py +371 -0
- autoagent/dynamic.py +256 -0
- autoagent/errors.py +99 -0
- autoagent/evolution.py +421 -0
- autoagent/http.py +190 -0
- autoagent/logging.py +96 -0
- autoagent/mcp.py +456 -0
- autoagent/memory.py +278 -0
- autoagent/orchestrator.py +470 -0
- autoagent/otel.py +214 -0
- autoagent/pipeline.py +80 -0
- autoagent/providers/__init__.py +36 -0
- autoagent/providers/anthropic.py +250 -0
- autoagent/providers/base.py +33 -0
- autoagent/providers/gemini.py +251 -0
- autoagent/providers/openai.py +238 -0
- autoagent/providers/routing.py +111 -0
- autoagent/registry.py +339 -0
- autoagent/sandbox.py +599 -0
- autoagent/schema.py +397 -0
- autoagent/trace.py +255 -0
- autoagent/workspace.py +262 -0
- autoagent_core-0.11.0.dist-info/METADATA +468 -0
- autoagent_core-0.11.0.dist-info/RECORD +29 -0
- autoagent_core-0.11.0.dist-info/WHEEL +5 -0
- autoagent_core-0.11.0.dist-info/licenses/LICENSE +21 -0
- autoagent_core-0.11.0.dist-info/top_level.txt +1 -0
autoagent/__init__.py
ADDED
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
"""autoagent — LLM agent library with tool use, dynamic tool generation,
|
|
2
|
+
and controlled software-evolution capabilities.
|
|
3
|
+
|
|
4
|
+
The public API exposed here is covered by Semantic Versioning. Anything
|
|
5
|
+
imported from a private submodule (single-underscore prefixed names,
|
|
6
|
+
internal-only helpers) is NOT public and may change without notice.
|
|
7
|
+
|
|
8
|
+
Threading model: `Agent`, `ToolRegistry`, and `ProjectWorkspace` are
|
|
9
|
+
safe to use from multiple threads. Each one serializes its internal
|
|
10
|
+
mutable state with a per-instance `threading.RLock`. Provider HTTP
|
|
11
|
+
calls are stateless and can be issued concurrently.
|
|
12
|
+
"""
|
|
13
|
+
|
|
14
|
+
from __future__ import annotations
|
|
15
|
+
|
|
16
|
+
__version__ = "0.11.0"
|
|
17
|
+
|
|
18
|
+
from .agent import (
|
|
19
|
+
Agent,
|
|
20
|
+
AgentResult,
|
|
21
|
+
AgentTurnContext,
|
|
22
|
+
CheckpointHook,
|
|
23
|
+
PostTurnHook,
|
|
24
|
+
RunState,
|
|
25
|
+
ToolPolicy,
|
|
26
|
+
ToolPolicyContext,
|
|
27
|
+
)
|
|
28
|
+
from .dynamic import DynamicToolBuilder, ToolBuildRequest
|
|
29
|
+
from .errors import (
|
|
30
|
+
AgentCancelled,
|
|
31
|
+
ApprovalRequired,
|
|
32
|
+
AutoAgentError,
|
|
33
|
+
MCPError,
|
|
34
|
+
MaxStepsExceeded,
|
|
35
|
+
TokenBudgetExceeded,
|
|
36
|
+
ProviderError,
|
|
37
|
+
ToolError,
|
|
38
|
+
ToolValidationError,
|
|
39
|
+
)
|
|
40
|
+
from .evolution import EVOLUTION_CAPABILITIES, EvolutionRuntime, enable_software_evolution
|
|
41
|
+
from .logging import get_logger
|
|
42
|
+
from .mcp import MCPClient
|
|
43
|
+
from .memory import BufferMemory, Memory, SummarizingMemory
|
|
44
|
+
from .otel import OTelTraceExporter
|
|
45
|
+
from .orchestrator import (
|
|
46
|
+
InterpretOutcome,
|
|
47
|
+
Orchestrator,
|
|
48
|
+
PhraseSignals,
|
|
49
|
+
Step,
|
|
50
|
+
TurnEvent,
|
|
51
|
+
)
|
|
52
|
+
from .pipeline import PipelineManager
|
|
53
|
+
from .providers import (
|
|
54
|
+
AnthropicProvider,
|
|
55
|
+
DeepSeekProvider,
|
|
56
|
+
GeminiProvider,
|
|
57
|
+
LLMProvider,
|
|
58
|
+
OpenAIProvider,
|
|
59
|
+
RoutingProvider,
|
|
60
|
+
create_provider,
|
|
61
|
+
)
|
|
62
|
+
from .registry import ToolRegistry, tool
|
|
63
|
+
from .schema import (
|
|
64
|
+
ImageAttachment,
|
|
65
|
+
LLMRequest,
|
|
66
|
+
LLMResponse,
|
|
67
|
+
Message,
|
|
68
|
+
ModelConfig,
|
|
69
|
+
StreamChunk,
|
|
70
|
+
StreamEvent,
|
|
71
|
+
TokenUsage,
|
|
72
|
+
ToolCall,
|
|
73
|
+
ToolSpec,
|
|
74
|
+
)
|
|
75
|
+
from .trace import OnEvent, TraceEmitter, TraceEvent
|
|
76
|
+
from .workspace import ProjectWorkspace
|
|
77
|
+
|
|
78
|
+
__all__ = [
|
|
79
|
+
"EVOLUTION_CAPABILITIES",
|
|
80
|
+
"Agent",
|
|
81
|
+
"AgentCancelled",
|
|
82
|
+
"AgentResult",
|
|
83
|
+
"AgentTurnContext",
|
|
84
|
+
"ApprovalRequired",
|
|
85
|
+
"AnthropicProvider",
|
|
86
|
+
"AutoAgentError",
|
|
87
|
+
"BufferMemory",
|
|
88
|
+
"CheckpointHook",
|
|
89
|
+
"RunState",
|
|
90
|
+
"SummarizingMemory",
|
|
91
|
+
"DeepSeekProvider",
|
|
92
|
+
"DynamicToolBuilder",
|
|
93
|
+
"EvolutionRuntime",
|
|
94
|
+
"GeminiProvider",
|
|
95
|
+
"LLMProvider",
|
|
96
|
+
"LLMRequest",
|
|
97
|
+
"LLMResponse",
|
|
98
|
+
"ImageAttachment",
|
|
99
|
+
"InterpretOutcome",
|
|
100
|
+
"MCPClient",
|
|
101
|
+
"MCPError",
|
|
102
|
+
"MaxStepsExceeded",
|
|
103
|
+
"TokenBudgetExceeded",
|
|
104
|
+
"Memory",
|
|
105
|
+
"Message",
|
|
106
|
+
"ModelConfig",
|
|
107
|
+
"OTelTraceExporter",
|
|
108
|
+
"OnEvent",
|
|
109
|
+
"OpenAIProvider",
|
|
110
|
+
"Orchestrator",
|
|
111
|
+
"PhraseSignals",
|
|
112
|
+
"PipelineManager",
|
|
113
|
+
"PostTurnHook",
|
|
114
|
+
"ProjectWorkspace",
|
|
115
|
+
"ProviderError",
|
|
116
|
+
"RoutingProvider",
|
|
117
|
+
"Step",
|
|
118
|
+
"StreamChunk",
|
|
119
|
+
"StreamEvent",
|
|
120
|
+
"TokenUsage",
|
|
121
|
+
"ToolBuildRequest",
|
|
122
|
+
"ToolCall",
|
|
123
|
+
"ToolError",
|
|
124
|
+
"ToolPolicy",
|
|
125
|
+
"ToolPolicyContext",
|
|
126
|
+
"ToolRegistry",
|
|
127
|
+
"ToolSpec",
|
|
128
|
+
"ToolValidationError",
|
|
129
|
+
"TraceEmitter",
|
|
130
|
+
"TraceEvent",
|
|
131
|
+
"TurnEvent",
|
|
132
|
+
"__version__",
|
|
133
|
+
"create_provider",
|
|
134
|
+
"enable_software_evolution",
|
|
135
|
+
"get_logger",
|
|
136
|
+
"tool",
|
|
137
|
+
]
|