Skip to content

AgenticRetrieveTraceEventAttributes

Source code in docs_src/capo_context/types/agentic_retrieve_trace_event_attributes.py
class AgenticRetrieveTraceEventAttributes(TypedDict, closed=True):
    step: "capo_context.types.agentic_retrieve_step.AgenticRetrieveStep"
    """<p>The step of the agent loop that this event reports on. Valid values:</p> <ul> <li> <p> <code>Planning</code> - The agent is planning which retrievals to run.</p> </li> <li> <p> <code>Retrieval</code> - The agent is running a retrieval.</p> </li> </ul>"""
    status: "capo_context.types.agentic_retrieve_step_status.AgenticRetrieveStepStatus"
    """<p>The status of the step. Valid values:</p> <ul> <li> <p> <code>IN_PROGRESS</code> - The step started.</p> </li> <li> <p> <code>SUCCEEDED</code> - The step finished successfully.</p> </li> <li> <p> <code>FAILED</code> - The step failed. <code>failures</code> describes why.</p> </li> </ul>"""
    message: "capo_context.types.trace_message.TraceMessage"
    """<p>Human-readable description of the step's state.</p>"""
    actions: NotRequired[
        "capo_context.types.agentic_retrieve_action_list.AgenticRetrieveActionList"
    ]
    """<p>The retrievals the agent planned. Present on Planning events only.</p>"""
    warnings: NotRequired[
        "capo_context.types.agentic_retrieve_warning_list.AgenticRetrieveWarningList"
    ]
    """<p>Problems that did not stop the step.</p>"""
    failures: NotRequired[
        "capo_context.types.agentic_retrieve_failure_list.AgenticRetrieveFailureList"
    ]
    """<p>Problems that failed the step.</p>"""

actions instance-attribute

actions: NotRequired[AgenticRetrieveActionList]

The retrievals the agent planned. Present on Planning events only.

failures instance-attribute

failures: NotRequired[AgenticRetrieveFailureList]

Problems that failed the step.

message instance-attribute

message: TraceMessage

Human-readable description of the step's state.

status instance-attribute

The status of the step. Valid values:

  • IN_PROGRESS - The step started.

  • SUCCEEDED - The step finished successfully.

  • FAILED - The step failed. failures describes why.

step instance-attribute

The step of the agent loop that this event reports on. Valid values:

  • Planning - The agent is planning which retrievals to run.

  • Retrieval - The agent is running a retrieval.

warnings instance-attribute

warnings: NotRequired[AgenticRetrieveWarningList]

Problems that did not stop the step.