Skip to content

AgenticRetrieveResultEvent

Source code in docs_src/capo_context/types/agentic_retrieve_result_event.py
class AgenticRetrieveResultEvent(TypedDict, closed=True):
    retrieved_context: "capo_context.types.retrieved_context_list.RetrievedContextList"
    """<p>The ranked, structured context that the agent assembled across all iterations, without duplicates. Always present. Each entry is a graph node, a graph edge, or a document.</p>"""
    answer: NotRequired["capo_context.types.answer.Answer"]
    """<p>The synthesized natural-language answer, when one was generated.</p>"""
    citations: NotRequired["capo_context.types.citation_list.CitationList"]
    """<p>Maps spans of answer to the supporting entities, when an answer was generated.</p>"""

answer instance-attribute

answer: NotRequired[Answer]

The synthesized natural-language answer, when one was generated.

citations instance-attribute

citations: NotRequired[CitationList]

Maps spans of answer to the supporting entities, when an answer was generated.

retrieved_context instance-attribute

retrieved_context: RetrievedContextList

The ranked, structured context that the agent assembled across all iterations, without duplicates. Always present. Each entry is a graph node, a graph edge, or a document.