Skip to content

SearchAgentContextResultEntity

Source code in docs_src/capo_context/types/search_agent_context_result_entity.py
class SearchAgentContextResultEntity(TypedDict, closed=True):
    node_id: NotRequired["capo_context.types.generic_node_id.GenericNodeId"]
    """<p>Identifier of the matched node. Set when this result is a node (at most one of nodeId or edgeId).</p>"""
    edge_id: NotRequired["capo_context.types.edge_identifier.EdgeIdentifier"]
    """<p>Identifier of the matched edge, set when this result is an edge (at most one of nodeId or edgeId). Edge search isn't supported, so AWS Context doesn't set this member. An edge document indexed by a custom ontology is returned with neither nodeId nor edgeId set.</p>"""
    entity_type: "capo_context.types.entity_type.EntityType"
    """<p>Specifies whether this result is a node or an edge. Valid values:</p> <ul> <li> <p> <code>NODE</code> - The result is a node. This is the only value that AWS Context returns.</p> </li> <li> <p> <code>EDGE</code> - The result is an edge.</p> </li> </ul>"""
    summary: NotRequired["capo_context.types.entity_summary.EntitySummary"]
    """<p>Human-readable description or summary of the entity.</p>"""
    score: "capo_context.types.score.Score"
    """<p>Relevance score indicating how well this entity matches the query.</p>"""
    properties: NotRequired["capo_context.types.metadata.Metadata"]
    """<p>Arbitrary key-value properties stored on the entity.</p>"""

edge_id instance-attribute

edge_id: NotRequired[EdgeIdentifier]

Identifier of the matched edge, set when this result is an edge (at most one of nodeId or edgeId). Edge search isn't supported, so AWS Context doesn't set this member. An edge document indexed by a custom ontology is returned with neither nodeId nor edgeId set.

entity_type instance-attribute

entity_type: EntityType

Specifies whether this result is a node or an edge. Valid values:

  • NODE - The result is a node. This is the only value that AWS Context returns.

  • EDGE - The result is an edge.

node_id instance-attribute

node_id: NotRequired[GenericNodeId]

Identifier of the matched node. Set when this result is a node (at most one of nodeId or edgeId).

properties instance-attribute

properties: NotRequired[Metadata]

Arbitrary key-value properties stored on the entity.

score instance-attribute

score: Score

Relevance score indicating how well this entity matches the query.

summary instance-attribute

summary: NotRequired[EntitySummary]

Human-readable description or summary of the entity.