steerable-agent-runtime 0.2.4__tar.gz → 0.2.5__tar.gz
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.
- {steerable_agent_runtime-0.2.4 → steerable_agent_runtime-0.2.5}/PKG-INFO +1 -1
- {steerable_agent_runtime-0.2.4 → steerable_agent_runtime-0.2.5}/pyproject.toml +1 -1
- steerable_agent_runtime-0.2.5/src/steerable_agent_runtime/__init__.py +165 -0
- steerable_agent_runtime-0.2.5/src/steerable_agent_runtime/antihallucination.py +619 -0
- steerable_agent_runtime-0.2.5/src/steerable_agent_runtime/calibration.py +259 -0
- steerable_agent_runtime-0.2.5/src/steerable_agent_runtime/compaction.py +259 -0
- steerable_agent_runtime-0.2.5/src/steerable_agent_runtime/hooks.py +250 -0
- {steerable_agent_runtime-0.2.4 → steerable_agent_runtime-0.2.5}/src/steerable_agent_runtime/llm/__init__.py +14 -0
- {steerable_agent_runtime-0.2.4 → steerable_agent_runtime-0.2.5}/src/steerable_agent_runtime/llm/anthropic_native.py +52 -19
- steerable_agent_runtime-0.2.5/src/steerable_agent_runtime/llm/errors.py +136 -0
- {steerable_agent_runtime-0.2.4 → steerable_agent_runtime-0.2.5}/src/steerable_agent_runtime/llm/openai_compat.py +102 -33
- steerable_agent_runtime-0.2.5/src/steerable_agent_runtime/loop.py +1100 -0
- steerable_agent_runtime-0.2.5/src/steerable_agent_runtime/otel.py +184 -0
- steerable_agent_runtime-0.2.5/src/steerable_agent_runtime/pseudo.py +397 -0
- steerable_agent_runtime-0.2.5/src/steerable_agent_runtime/replay.py +222 -0
- steerable_agent_runtime-0.2.5/src/steerable_agent_runtime/resume.py +224 -0
- steerable_agent_runtime-0.2.5/src/steerable_agent_runtime/retry.py +78 -0
- steerable_agent_runtime-0.2.5/src/steerable_agent_runtime/skills.py +548 -0
- steerable_agent_runtime-0.2.5/src/steerable_agent_runtime/spill.py +127 -0
- steerable_agent_runtime-0.2.5/src/steerable_agent_runtime/subagent.py +136 -0
- steerable_agent_runtime-0.2.5/src/steerable_agent_runtime/tokens.py +158 -0
- {steerable_agent_runtime-0.2.4 → steerable_agent_runtime-0.2.5}/src/steerable_agent_runtime/tools.py +150 -7
- steerable_agent_runtime-0.2.5/src/steerable_agent_runtime/tracing.py +178 -0
- {steerable_agent_runtime-0.2.4 → steerable_agent_runtime-0.2.5}/src/steerable_agent_runtime/transport/stdio_jsonrpc.py +121 -9
- {steerable_agent_runtime-0.2.4 → steerable_agent_runtime-0.2.5}/src/steerable_agent_runtime.egg-info/PKG-INFO +1 -1
- steerable_agent_runtime-0.2.5/src/steerable_agent_runtime.egg-info/SOURCES.txt +63 -0
- steerable_agent_runtime-0.2.5/tests/test_antihallucination.py +626 -0
- steerable_agent_runtime-0.2.5/tests/test_calibration.py +169 -0
- steerable_agent_runtime-0.2.5/tests/test_compaction.py +327 -0
- steerable_agent_runtime-0.2.5/tests/test_error_taxonomy.py +178 -0
- steerable_agent_runtime-0.2.5/tests/test_hooks.py +277 -0
- {steerable_agent_runtime-0.2.4 → steerable_agent_runtime-0.2.5}/tests/test_llm_wire_helpers.py +93 -0
- steerable_agent_runtime-0.2.5/tests/test_loop.py +235 -0
- steerable_agent_runtime-0.2.5/tests/test_loop_replay.py +142 -0
- steerable_agent_runtime-0.2.5/tests/test_otel.py +161 -0
- steerable_agent_runtime-0.2.5/tests/test_parallel_tools.py +277 -0
- steerable_agent_runtime-0.2.5/tests/test_pseudo.py +215 -0
- steerable_agent_runtime-0.2.5/tests/test_replay_crosslang.py +45 -0
- steerable_agent_runtime-0.2.5/tests/test_resume.py +265 -0
- steerable_agent_runtime-0.2.5/tests/test_retry_hooks.py +139 -0
- steerable_agent_runtime-0.2.5/tests/test_safety_gate.py +111 -0
- steerable_agent_runtime-0.2.5/tests/test_skills.py +575 -0
- steerable_agent_runtime-0.2.5/tests/test_soft_timeout.py +165 -0
- steerable_agent_runtime-0.2.5/tests/test_spill.py +144 -0
- steerable_agent_runtime-0.2.5/tests/test_steer.py +127 -0
- steerable_agent_runtime-0.2.5/tests/test_stream_strip.py +212 -0
- steerable_agent_runtime-0.2.5/tests/test_subagent.py +144 -0
- steerable_agent_runtime-0.2.5/tests/test_tokens.py +123 -0
- steerable_agent_runtime-0.2.5/tests/test_tool_hygiene.py +245 -0
- {steerable_agent_runtime-0.2.4 → steerable_agent_runtime-0.2.5}/tests/test_tool_router.py +61 -0
- steerable_agent_runtime-0.2.5/tests/test_trace_recorder.py +170 -0
- {steerable_agent_runtime-0.2.4 → steerable_agent_runtime-0.2.5}/tests/test_transport_jsonrpc.py +90 -0
- steerable_agent_runtime-0.2.4/src/steerable_agent_runtime/__init__.py +0 -34
- steerable_agent_runtime-0.2.4/src/steerable_agent_runtime.egg-info/SOURCES.txt +0 -24
- {steerable_agent_runtime-0.2.4 → steerable_agent_runtime-0.2.5}/README.md +0 -0
- {steerable_agent_runtime-0.2.4 → steerable_agent_runtime-0.2.5}/setup.cfg +0 -0
- {steerable_agent_runtime-0.2.4 → steerable_agent_runtime-0.2.5}/src/steerable_agent_runtime/errors.py +0 -0
- {steerable_agent_runtime-0.2.4 → steerable_agent_runtime-0.2.5}/src/steerable_agent_runtime/storage/__init__.py +0 -0
- {steerable_agent_runtime-0.2.4 → steerable_agent_runtime-0.2.5}/src/steerable_agent_runtime/storage/in_memory.py +0 -0
- {steerable_agent_runtime-0.2.4 → steerable_agent_runtime-0.2.5}/src/steerable_agent_runtime/storage/sqlalchemy_store.py +0 -0
- {steerable_agent_runtime-0.2.4 → steerable_agent_runtime-0.2.5}/src/steerable_agent_runtime/transport/__init__.py +0 -0
- {steerable_agent_runtime-0.2.4 → steerable_agent_runtime-0.2.5}/src/steerable_agent_runtime/transport/fastapi_sse.py +0 -0
- {steerable_agent_runtime-0.2.4 → steerable_agent_runtime-0.2.5}/src/steerable_agent_runtime.egg-info/dependency_links.txt +0 -0
- {steerable_agent_runtime-0.2.4 → steerable_agent_runtime-0.2.5}/src/steerable_agent_runtime.egg-info/requires.txt +0 -0
- {steerable_agent_runtime-0.2.4 → steerable_agent_runtime-0.2.5}/src/steerable_agent_runtime.egg-info/top_level.txt +0 -0
- {steerable_agent_runtime-0.2.4 → steerable_agent_runtime-0.2.5}/tests/test_in_memory_storage.py +0 -0
- {steerable_agent_runtime-0.2.4 → steerable_agent_runtime-0.2.5}/tests/test_transport_sse.py +0 -0
|
@@ -0,0 +1,165 @@
|
|
|
1
|
+
"""Steerable agent runtime — Tier 3 adapter package."""
|
|
2
|
+
|
|
3
|
+
from .antihallucination import (
|
|
4
|
+
AntiHallucinationConfig,
|
|
5
|
+
AntiHallucinationHooks,
|
|
6
|
+
detect_claimed_execution,
|
|
7
|
+
detect_deferred_execution,
|
|
8
|
+
detect_deferred_execution_eager,
|
|
9
|
+
detect_execution_intent_in_user_message,
|
|
10
|
+
parse_grounding_verdict,
|
|
11
|
+
parse_turn_route,
|
|
12
|
+
should_run_grounding_judge,
|
|
13
|
+
)
|
|
14
|
+
from .calibration import CalibratingProvider, ModelCalibration, UsageCalibration
|
|
15
|
+
from .compaction import CompactionHooks
|
|
16
|
+
from .errors import (
|
|
17
|
+
BudgetExhaustedError,
|
|
18
|
+
PolicyDeniedError,
|
|
19
|
+
StorageError,
|
|
20
|
+
ToolDispatchError,
|
|
21
|
+
TransportError,
|
|
22
|
+
)
|
|
23
|
+
from .errors import (
|
|
24
|
+
RuntimeError as SteerableRuntimeError,
|
|
25
|
+
)
|
|
26
|
+
from .hooks import (
|
|
27
|
+
ChainHooks,
|
|
28
|
+
CompletionAction,
|
|
29
|
+
CompletionDraft,
|
|
30
|
+
LoopHooks,
|
|
31
|
+
NoopHooks,
|
|
32
|
+
PreStepAction,
|
|
33
|
+
RetryAction,
|
|
34
|
+
)
|
|
35
|
+
from .llm import LLMMessage, LLMProvider, LLMStreamChunk, LLMUsage
|
|
36
|
+
from .loop import (
|
|
37
|
+
CompletionDecision,
|
|
38
|
+
CoreLoop,
|
|
39
|
+
LoopConfig,
|
|
40
|
+
LoopContext,
|
|
41
|
+
LoopEvent,
|
|
42
|
+
RouterToolExecutor,
|
|
43
|
+
ToolExecutor,
|
|
44
|
+
)
|
|
45
|
+
from .pseudo import extract_inline_tool_calls
|
|
46
|
+
from .replay import (
|
|
47
|
+
ExecutionBudget,
|
|
48
|
+
HarnessExecutionState,
|
|
49
|
+
HarnessTrajectoryEvent,
|
|
50
|
+
build_step_decision_event,
|
|
51
|
+
reduce_execution_state,
|
|
52
|
+
)
|
|
53
|
+
from .otel import export_otlp_http, to_otlp_json
|
|
54
|
+
from .resume import load_transcript, project_transcript
|
|
55
|
+
from .retry import RetryHooks
|
|
56
|
+
from .skills import (
|
|
57
|
+
EAGER_PRIORITY_THRESHOLD,
|
|
58
|
+
FilesystemSkillProvider,
|
|
59
|
+
SkillConfig,
|
|
60
|
+
SkillDefinition,
|
|
61
|
+
SkillExecutor,
|
|
62
|
+
SkillHooks,
|
|
63
|
+
SkillProvider,
|
|
64
|
+
SkillSummary,
|
|
65
|
+
matches_conditions,
|
|
66
|
+
render_skill_catalog,
|
|
67
|
+
select_catalog,
|
|
68
|
+
skill_tool_descriptor,
|
|
69
|
+
)
|
|
70
|
+
from .spill import FilesystemSpillStore, InMemorySpillStore, SpillHooks, SpillStore
|
|
71
|
+
from .storage import StorageAdapter
|
|
72
|
+
from .subagent import SubagentConfig, SubagentExecutor, subagent_tool_descriptor
|
|
73
|
+
from .tokens import (
|
|
74
|
+
MODEL_TOKEN_FACTORS,
|
|
75
|
+
estimate_text_tokens,
|
|
76
|
+
estimate_tokens,
|
|
77
|
+
factor_for_model,
|
|
78
|
+
register_model_factor,
|
|
79
|
+
)
|
|
80
|
+
from .tools import RegisteredTool, ToolRouter, tool
|
|
81
|
+
from .tracing import TraceRecorder
|
|
82
|
+
from .transport import TransportAdapter
|
|
83
|
+
|
|
84
|
+
__all__ = [
|
|
85
|
+
"AntiHallucinationConfig",
|
|
86
|
+
"AntiHallucinationHooks",
|
|
87
|
+
"BudgetExhaustedError",
|
|
88
|
+
"CalibratingProvider",
|
|
89
|
+
"ChainHooks",
|
|
90
|
+
"CompactionHooks",
|
|
91
|
+
"CompletionAction",
|
|
92
|
+
"CompletionDecision",
|
|
93
|
+
"CompletionDraft",
|
|
94
|
+
"CoreLoop",
|
|
95
|
+
"EAGER_PRIORITY_THRESHOLD",
|
|
96
|
+
"ExecutionBudget",
|
|
97
|
+
"FilesystemSkillProvider",
|
|
98
|
+
"FilesystemSpillStore",
|
|
99
|
+
"HarnessExecutionState",
|
|
100
|
+
"HarnessTrajectoryEvent",
|
|
101
|
+
"InMemorySpillStore",
|
|
102
|
+
"LLMMessage",
|
|
103
|
+
"LLMProvider",
|
|
104
|
+
"LLMStreamChunk",
|
|
105
|
+
"LLMUsage",
|
|
106
|
+
"LoopConfig",
|
|
107
|
+
"LoopContext",
|
|
108
|
+
"LoopEvent",
|
|
109
|
+
"LoopHooks",
|
|
110
|
+
"NoopHooks",
|
|
111
|
+
"PolicyDeniedError",
|
|
112
|
+
"PreStepAction",
|
|
113
|
+
"RegisteredTool",
|
|
114
|
+
"RetryAction",
|
|
115
|
+
"RetryHooks",
|
|
116
|
+
"RouterToolExecutor",
|
|
117
|
+
"SkillConfig",
|
|
118
|
+
"SkillDefinition",
|
|
119
|
+
"SkillExecutor",
|
|
120
|
+
"SkillHooks",
|
|
121
|
+
"SkillProvider",
|
|
122
|
+
"SkillSummary",
|
|
123
|
+
"SpillHooks",
|
|
124
|
+
"SpillStore",
|
|
125
|
+
"SteerableRuntimeError",
|
|
126
|
+
"StorageAdapter",
|
|
127
|
+
"StorageError",
|
|
128
|
+
"SubagentConfig",
|
|
129
|
+
"SubagentExecutor",
|
|
130
|
+
"ToolDispatchError",
|
|
131
|
+
"ToolExecutor",
|
|
132
|
+
"MODEL_TOKEN_FACTORS",
|
|
133
|
+
"ModelCalibration",
|
|
134
|
+
"ToolRouter",
|
|
135
|
+
"TraceRecorder",
|
|
136
|
+
"estimate_text_tokens",
|
|
137
|
+
"estimate_tokens",
|
|
138
|
+
"export_otlp_http",
|
|
139
|
+
"factor_for_model",
|
|
140
|
+
"register_model_factor",
|
|
141
|
+
"to_otlp_json",
|
|
142
|
+
"TransportAdapter",
|
|
143
|
+
"TransportError",
|
|
144
|
+
"UsageCalibration",
|
|
145
|
+
"build_step_decision_event",
|
|
146
|
+
"detect_claimed_execution",
|
|
147
|
+
"detect_deferred_execution",
|
|
148
|
+
"detect_deferred_execution_eager",
|
|
149
|
+
"detect_execution_intent_in_user_message",
|
|
150
|
+
"extract_inline_tool_calls",
|
|
151
|
+
"parse_grounding_verdict",
|
|
152
|
+
"parse_turn_route",
|
|
153
|
+
"load_transcript",
|
|
154
|
+
"matches_conditions",
|
|
155
|
+
"project_transcript",
|
|
156
|
+
"reduce_execution_state",
|
|
157
|
+
"render_skill_catalog",
|
|
158
|
+
"select_catalog",
|
|
159
|
+
"should_run_grounding_judge",
|
|
160
|
+
"skill_tool_descriptor",
|
|
161
|
+
"subagent_tool_descriptor",
|
|
162
|
+
"tool",
|
|
163
|
+
]
|
|
164
|
+
|
|
165
|
+
__version__ = "0.1.0"
|