[agentprobe.testing]
class AgentProbeError(Exception)
class AssertionRecord(object)
    fields: name, status, message, required
class CallRecord(object)
    fields: index, tool, tool_call_index, args, kwargs, status, outcome, value, exception_type, exception_message, injected, fault, rule_id, duration_ms, span_id, started_seq, completed_seq, after_probe_end, completed_after_close, unsupported, raw_args, raw_kwargs, exact_args, exact_kwargs, signature
    def to_dict(self)
class GateReport(object)
    fields: passed, failures, scenarios_exercised, scenarios_required, assertions_passed, assertions_required
class ModelBudgetExceeded(ModelCallRejected)
class ModelCallAfterProbe(ModelCallRejected)
class ModelCallRecord(object)
    fields: model, index, front_end, outcome, messages, tools_offered, step, step_description, returned_content, returned_tool_calls, detail, after_probe_end
    def to_dict(self)
class ModelCallRejected(AgentProbeError)
class Probe(object)
    def __init__(self, *, enforce=True, redact=True, redact_keys=(), redact_patterns=())
    active: property
    async def arun(self, agent, input=None, *args, timeout=None, cancel_grace=1.0, **kwargs)
    calls: property
    def close(self)
    def gate(self)
    late_calls: property
    def model(self, *steps, max_calls=None, allow_unused=False)
    def on(self, tool)
    def run(self, agent, input=None, *args, timeout=None, **kwargs)
    def scenarios(self)
    def wrap(self, tools)
class ProbeError(AgentProbeError)
class ProbeGateError(AgentProbeError, AssertionError)
class ProbeResult(object)
    fields: input, answer, raw_output, exception, elapsed_ms, deadline_seconds, deadline_exceeded, still_running, calls, scenarios, known_tools, cancelled, cancel_requested, assertions, model_calls, model_problems, scripted_models
    def assert_answer(self, check, description=None, *, required=True)
    def assert_answer_contains(self, text, *, case_sensitive=False, required=True)
    def assert_answer_matches(self, pattern, *, flags=0, required=True)
    def assert_answer_not_contains(self, text, *, case_sensitive=False, required=True)
    def assert_answer_not_matches(self, pattern, *, flags=0, required=True)
    def assert_call_order(self, tools, *, required=True)
    def assert_called(self, tool, *, required=True)
    def assert_called_at_most(self, tool, n, *, required=True)
    def assert_called_times(self, tool, n, *, required=True)
    def assert_called_with(self, tool, /, *args, **kwargs)
    def assert_every_tool_call_answered(self, *, required=True)
    def assert_model_calls_at_most(self, n, *, required=True)
    def assert_model_received(self, pattern, *, role=None, required=True)
    def assert_no_crash(self, *, required=True)
    def assert_not_called(self, tool, *, required=True)
    def assert_scenarios_exercised(self)
    def assert_within(self, seconds, *, required=True)
    fallbacks: property
    def gate(self)
    retries: property
    def summary(self)
    def to_dict(self)
SCHEMA_VERSION = '1.4'
class ScenarioEvidence(object)
    fields: rule_id, tool, description, required, planned, injected, tool_calls, boundary_reached, status
class ScriptExhausted(ModelCallRejected)
class ScriptOverlap(ModelCallRejected)
class ScriptedModel(object)
    calls: property
    def langchain(self)
    def problems(self)
    def serve(self)
class ToolCallAPIError(ToolCallError)
    def __init__(self, status_code=500)
class ToolCallError(Exception)
class ToolCallMalformedOutput(ToolCallError)
class ToolCallRateLimited(ToolCallError)
    def __init__(self, retry_after=60.0)
class ToolCallTimeout(ToolCallError, TimeoutError)
class ToolScenarios(object)
    def always_fail(self, *, with_='timeout', required=True)
    def fail_first(self, n=1, *, with_='timeout', required=True)
    def fail_times(self, n, *, with_='timeout', required=True)
    def returns(self, value, *, times=1, required=True)
    def slow(self, *, ms, times=1, required=True)
    def with_probability(self, p, *, with_='timeout', seed=None, required=True)
class UnsupportedModelRequest(ModelCallRejected)
def probe(*, enforce=True, redact=True, redact_keys=(), redact_patterns=())
script: module agentprobe.script

[agentprobe.faults]
class ToolCallAPIError(ToolCallError)
    def __init__(self, status_code=500)
class ToolCallError(Exception)
class ToolCallMalformedOutput(ToolCallError)
class ToolCallRateLimited(ToolCallError)
    def __init__(self, retry_after=60.0)
class ToolCallTimeout(ToolCallError, TimeoutError)

[agentprobe.script]
class Step(object)
    fields: kind, calls, text, times
    def describe(self, *, redactor=None)
class ToolCall(object)
    fields: name, args, raw_args, id
    def describe(self, *, redactor=None)
def repeat(step, times=None)
def reply(text)
def tool_call(name, args=None, *, raw_args=None, id=None)
def tool_calls(*calls)

[agentprobe.errors]
class AgentProbeError(Exception)
class HarnessLimitation(AgentProbeError)
class ParallelToolCallsUnsupported(HarnessLimitation)
    def __init__(self, n_calls, names)
class ProbeError(AgentProbeError)
