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.
Files changed (67) hide show
  1. {steerable_agent_runtime-0.2.4 → steerable_agent_runtime-0.2.5}/PKG-INFO +1 -1
  2. {steerable_agent_runtime-0.2.4 → steerable_agent_runtime-0.2.5}/pyproject.toml +1 -1
  3. steerable_agent_runtime-0.2.5/src/steerable_agent_runtime/__init__.py +165 -0
  4. steerable_agent_runtime-0.2.5/src/steerable_agent_runtime/antihallucination.py +619 -0
  5. steerable_agent_runtime-0.2.5/src/steerable_agent_runtime/calibration.py +259 -0
  6. steerable_agent_runtime-0.2.5/src/steerable_agent_runtime/compaction.py +259 -0
  7. steerable_agent_runtime-0.2.5/src/steerable_agent_runtime/hooks.py +250 -0
  8. {steerable_agent_runtime-0.2.4 → steerable_agent_runtime-0.2.5}/src/steerable_agent_runtime/llm/__init__.py +14 -0
  9. {steerable_agent_runtime-0.2.4 → steerable_agent_runtime-0.2.5}/src/steerable_agent_runtime/llm/anthropic_native.py +52 -19
  10. steerable_agent_runtime-0.2.5/src/steerable_agent_runtime/llm/errors.py +136 -0
  11. {steerable_agent_runtime-0.2.4 → steerable_agent_runtime-0.2.5}/src/steerable_agent_runtime/llm/openai_compat.py +102 -33
  12. steerable_agent_runtime-0.2.5/src/steerable_agent_runtime/loop.py +1100 -0
  13. steerable_agent_runtime-0.2.5/src/steerable_agent_runtime/otel.py +184 -0
  14. steerable_agent_runtime-0.2.5/src/steerable_agent_runtime/pseudo.py +397 -0
  15. steerable_agent_runtime-0.2.5/src/steerable_agent_runtime/replay.py +222 -0
  16. steerable_agent_runtime-0.2.5/src/steerable_agent_runtime/resume.py +224 -0
  17. steerable_agent_runtime-0.2.5/src/steerable_agent_runtime/retry.py +78 -0
  18. steerable_agent_runtime-0.2.5/src/steerable_agent_runtime/skills.py +548 -0
  19. steerable_agent_runtime-0.2.5/src/steerable_agent_runtime/spill.py +127 -0
  20. steerable_agent_runtime-0.2.5/src/steerable_agent_runtime/subagent.py +136 -0
  21. steerable_agent_runtime-0.2.5/src/steerable_agent_runtime/tokens.py +158 -0
  22. {steerable_agent_runtime-0.2.4 → steerable_agent_runtime-0.2.5}/src/steerable_agent_runtime/tools.py +150 -7
  23. steerable_agent_runtime-0.2.5/src/steerable_agent_runtime/tracing.py +178 -0
  24. {steerable_agent_runtime-0.2.4 → steerable_agent_runtime-0.2.5}/src/steerable_agent_runtime/transport/stdio_jsonrpc.py +121 -9
  25. {steerable_agent_runtime-0.2.4 → steerable_agent_runtime-0.2.5}/src/steerable_agent_runtime.egg-info/PKG-INFO +1 -1
  26. steerable_agent_runtime-0.2.5/src/steerable_agent_runtime.egg-info/SOURCES.txt +63 -0
  27. steerable_agent_runtime-0.2.5/tests/test_antihallucination.py +626 -0
  28. steerable_agent_runtime-0.2.5/tests/test_calibration.py +169 -0
  29. steerable_agent_runtime-0.2.5/tests/test_compaction.py +327 -0
  30. steerable_agent_runtime-0.2.5/tests/test_error_taxonomy.py +178 -0
  31. steerable_agent_runtime-0.2.5/tests/test_hooks.py +277 -0
  32. {steerable_agent_runtime-0.2.4 → steerable_agent_runtime-0.2.5}/tests/test_llm_wire_helpers.py +93 -0
  33. steerable_agent_runtime-0.2.5/tests/test_loop.py +235 -0
  34. steerable_agent_runtime-0.2.5/tests/test_loop_replay.py +142 -0
  35. steerable_agent_runtime-0.2.5/tests/test_otel.py +161 -0
  36. steerable_agent_runtime-0.2.5/tests/test_parallel_tools.py +277 -0
  37. steerable_agent_runtime-0.2.5/tests/test_pseudo.py +215 -0
  38. steerable_agent_runtime-0.2.5/tests/test_replay_crosslang.py +45 -0
  39. steerable_agent_runtime-0.2.5/tests/test_resume.py +265 -0
  40. steerable_agent_runtime-0.2.5/tests/test_retry_hooks.py +139 -0
  41. steerable_agent_runtime-0.2.5/tests/test_safety_gate.py +111 -0
  42. steerable_agent_runtime-0.2.5/tests/test_skills.py +575 -0
  43. steerable_agent_runtime-0.2.5/tests/test_soft_timeout.py +165 -0
  44. steerable_agent_runtime-0.2.5/tests/test_spill.py +144 -0
  45. steerable_agent_runtime-0.2.5/tests/test_steer.py +127 -0
  46. steerable_agent_runtime-0.2.5/tests/test_stream_strip.py +212 -0
  47. steerable_agent_runtime-0.2.5/tests/test_subagent.py +144 -0
  48. steerable_agent_runtime-0.2.5/tests/test_tokens.py +123 -0
  49. steerable_agent_runtime-0.2.5/tests/test_tool_hygiene.py +245 -0
  50. {steerable_agent_runtime-0.2.4 → steerable_agent_runtime-0.2.5}/tests/test_tool_router.py +61 -0
  51. steerable_agent_runtime-0.2.5/tests/test_trace_recorder.py +170 -0
  52. {steerable_agent_runtime-0.2.4 → steerable_agent_runtime-0.2.5}/tests/test_transport_jsonrpc.py +90 -0
  53. steerable_agent_runtime-0.2.4/src/steerable_agent_runtime/__init__.py +0 -34
  54. steerable_agent_runtime-0.2.4/src/steerable_agent_runtime.egg-info/SOURCES.txt +0 -24
  55. {steerable_agent_runtime-0.2.4 → steerable_agent_runtime-0.2.5}/README.md +0 -0
  56. {steerable_agent_runtime-0.2.4 → steerable_agent_runtime-0.2.5}/setup.cfg +0 -0
  57. {steerable_agent_runtime-0.2.4 → steerable_agent_runtime-0.2.5}/src/steerable_agent_runtime/errors.py +0 -0
  58. {steerable_agent_runtime-0.2.4 → steerable_agent_runtime-0.2.5}/src/steerable_agent_runtime/storage/__init__.py +0 -0
  59. {steerable_agent_runtime-0.2.4 → steerable_agent_runtime-0.2.5}/src/steerable_agent_runtime/storage/in_memory.py +0 -0
  60. {steerable_agent_runtime-0.2.4 → steerable_agent_runtime-0.2.5}/src/steerable_agent_runtime/storage/sqlalchemy_store.py +0 -0
  61. {steerable_agent_runtime-0.2.4 → steerable_agent_runtime-0.2.5}/src/steerable_agent_runtime/transport/__init__.py +0 -0
  62. {steerable_agent_runtime-0.2.4 → steerable_agent_runtime-0.2.5}/src/steerable_agent_runtime/transport/fastapi_sse.py +0 -0
  63. {steerable_agent_runtime-0.2.4 → steerable_agent_runtime-0.2.5}/src/steerable_agent_runtime.egg-info/dependency_links.txt +0 -0
  64. {steerable_agent_runtime-0.2.4 → steerable_agent_runtime-0.2.5}/src/steerable_agent_runtime.egg-info/requires.txt +0 -0
  65. {steerable_agent_runtime-0.2.4 → steerable_agent_runtime-0.2.5}/src/steerable_agent_runtime.egg-info/top_level.txt +0 -0
  66. {steerable_agent_runtime-0.2.4 → steerable_agent_runtime-0.2.5}/tests/test_in_memory_storage.py +0 -0
  67. {steerable_agent_runtime-0.2.4 → steerable_agent_runtime-0.2.5}/tests/test_transport_sse.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: steerable-agent-runtime
3
- Version: 0.2.4
3
+ Version: 0.2.5
4
4
  Summary: Steerable agent runtime: LLM, tool, storage, and transport adapters.
5
5
  Requires-Python: >=3.10
6
6
  Description-Content-Type: text/markdown
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "steerable-agent-runtime"
3
- version = "0.2.4"
3
+ version = "0.2.5"
4
4
  description = "Steerable agent runtime: LLM, tool, storage, and transport adapters."
5
5
  readme = "README.md"
6
6
  requires-python = ">=3.10"
@@ -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"