Skip to content

BedrockFunctionTarget

Source code in docs_src/capo_elementalinference/types/bedrock_function_target.py
class BedrockFunctionTarget(TypedDict, closed=True):
    api: "capo_elementalinference.types.bedrock_api.BedrockApi"
    """<p>The Amazon Bedrock API to call. The only valid value is INVOKE_MODEL.</p>"""
    model: "str"
    """<p>The model to invoke. Specify one of the following:</p> <ul> <li> <p>A model ID.</p> </li> <li> <p>An inference profile ID.</p> </li> <li> <p>The ARN of a custom model.</p> </li> <li> <p>The ARN of a provisioned model.</p> </li> </ul> <p>Elemental Inference invokes the model in the Region of the feed. To use a model in other Regions, specify a cross-Region inference profile ID. A custom or provisioned model must be in the Region of the feed. </p> <p>The request expression must produce a request body that this model accepts, and the model must accept the kind of media that the request expression references. For example, a text-only model can't accept a request that references media.frames. </p>"""

api instance-attribute

The Amazon Bedrock API to call. The only valid value is INVOKE_MODEL.

model instance-attribute

model: str

The model to invoke. Specify one of the following:

  • A model ID.

  • An inference profile ID.

  • The ARN of a custom model.

  • The ARN of a provisioned model.

Elemental Inference invokes the model in the Region of the feed. To use a model in other Regions, specify a cross-Region inference profile ID. A custom or provisioned model must be in the Region of the feed.

The request expression must produce a request body that this model accepts, and the model must accept the kind of media that the request expression references. For example, a text-only model can't accept a request that references media.frames.