Skip to content

GetFunctionResponse

Source code in docs_src/capo_elementalinference/types/get_function_response.py
class GetFunctionResponse(TypedDict, closed=True):
    name: "capo_elementalinference.types.resource_name.ResourceName"
    """<p>The name of the function.</p>"""
    target: "capo_elementalinference.types.function_target.FunctionTarget"
    """<p>The destination for the request that the function builds.</p>"""
    request_expression: (
        "capo_elementalinference.types.jsonata_expression.JsonataExpression"
    )
    """<p>The JSONata expression that builds the request. Elemental Inference evaluates it against the media object of the feed, which holds the media and metadata that the function asked for. </p>"""
    response_expression: NotRequired[
        "capo_elementalinference.types.jsonata_expression.JsonataExpression"
    ]
    """<p>The JSONata expression that selects what to store. Elemental Inference evaluates it against the result as its root: the model response for a Bedrock target, or the output of the request expression for a passthrough target. If a function has no response expression, Elemental Inference stores the entire result. </p>"""
    description: NotRequired[
        "capo_elementalinference.types.function_description.FunctionDescription"
    ]
    """<p>The description of the function.</p>"""
    event_bridge_delivery: "capo_elementalinference.types.event_bridge_delivery_mode.EventBridgeDeliveryMode"
    """<p>Indicates whether Elemental Inference also sends this function's results to Amazon EventBridge. With ENABLED, each result that is a JSON object with a top-level <code>eventBridge</code> field set to <code>true</code> is also sent as a Function Metadata Generated event to the default event bus in your account. </p>"""
    arn: "capo_elementalinference.types.function_arn.FunctionArn"
    """<p>The ARN of the function.</p>"""
    id: "capo_elementalinference.types.function_id.FunctionId"
    """<p>The ID of the function.</p>"""
    status: "capo_elementalinference.types.function_status.FunctionStatus"
    """<p>The status of the function.</p>"""
    references: NotRequired[
        "capo_elementalinference.types.feed_references.FeedReferences"
    ]
    """<p>The IDs of the feeds that have a function output, enabled or disabled, that references this function. While this list isn't empty, the function can't be deleted, and its name and target can't be changed. </p>"""
    context_types: NotRequired[
        "capo_elementalinference.types.context_type_list.ContextTypeList"
    ]
    """<p>The kinds of media context that this function uses. Elemental Inference derives this field from the media paths that the request expression references; you can't set it. An empty list means that the expression references no media, so Elemental Inference supplies none at run time. </p>"""
    tags: NotRequired["capo_elementalinference.types.tag_map.TagMap"]
    """<p>The tags associated with the function.</p>"""

arn instance-attribute

The ARN of the function.

context_types instance-attribute

context_types: NotRequired[ContextTypeList]

The kinds of media context that this function uses. Elemental Inference derives this field from the media paths that the request expression references; you can't set it. An empty list means that the expression references no media, so Elemental Inference supplies none at run time.

description instance-attribute

description: NotRequired[FunctionDescription]

The description of the function.

event_bridge_delivery instance-attribute

event_bridge_delivery: EventBridgeDeliveryMode

Indicates whether Elemental Inference also sends this function's results to Amazon EventBridge. With ENABLED, each result that is a JSON object with a top-level eventBridge field set to true is also sent as a Function Metadata Generated event to the default event bus in your account.

id instance-attribute

The ID of the function.

name instance-attribute

The name of the function.

references instance-attribute

references: NotRequired[FeedReferences]

The IDs of the feeds that have a function output, enabled or disabled, that references this function. While this list isn't empty, the function can't be deleted, and its name and target can't be changed.

request_expression instance-attribute

request_expression: JsonataExpression

The JSONata expression that builds the request. Elemental Inference evaluates it against the media object of the feed, which holds the media and metadata that the function asked for.

response_expression instance-attribute

response_expression: NotRequired[JsonataExpression]

The JSONata expression that selects what to store. Elemental Inference evaluates it against the result as its root: the model response for a Bedrock target, or the output of the request expression for a passthrough target. If a function has no response expression, Elemental Inference stores the entire result.

status instance-attribute

The status of the function.

tags instance-attribute

tags: NotRequired[TagMap]

The tags associated with the function.

target instance-attribute

The destination for the request that the function builds.