aws.internal.ToolInputSchema

A tool's parameter schema. The schema is genuinely open-ended (arbitrary JSON Schema authored by the tool), so it is one of the two `baml.json.json` escape hatches in this file — see `_prune_nulls`.

Reference version

Signature

class aws.internal.ToolInputSchema

A tool's parameter schema. The schema is genuinely open-ended (arbitrary JSON Schema authored by the tool), so it is one of the two baml.json.json escape hatches in this file — see _prune_nulls.

The Converse wire key is json, but that name collides with pydantic.BaseModel.json in generated Python SDKs, so the field is schema with an explicit wire mapping (the same reserved-word pattern as the chat client's fn"function").

Source:<builtin>/aws/ns_internal/bedrock.bamlbytes 87188999

Fields

json_schema

baml.json.json

Implementations

baml.ToJson for aws.internal.ToolInputSchema

Instance methods

function

to_json

(self) -> baml.json.json

Source:<builtin>/aws/ns_internal/bedrock.bamlbytes 87808997