UpdateFunctionResponse
¶
Source code in docs_src/capo_elementalinference/types/update_function_response.py
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.
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.
target
instance-attribute
¶
target: FunctionTarget
The destination for the request that the function builds.