Bedrock client implementation for API interactions and model integration.
Name | Type | Description |
---|---|---|
logger | Logger | The Maxim logger instance for tracking interactions. |
client | BaseClient | The Bedrock client instance to wrap. |
Name | Type | Description |
---|---|---|
messages | Iterable[BedrockMessageParam] | The messages to send to the Bedrock client. |
system | Optional[Union[str, List[Dict[str, str]]]] | The system message to send to the Bedrock client. |
modelId | str | The model ID to use for the Bedrock client. |
max_tokens | Optional[int] | The maximum number of tokens to generate. |
trace_id | Optional[str] | The trace ID to use for the Bedrock client. |
generation_name | Optional[str] | The name of the generation to use for the Bedrock client. |
inferenceConfig | Optional[Dict[str, Any]] | The inference configuration to use for the Bedrock client. |
toolConfig | Optional[Dict[str, Any]] | The tool configuration to use for the Bedrock client. |
guardrailConfig | Optional[Dict[str, Any]] | The guardrail configuration to use for the Bedrock client. |
performanceConfig | Optional[Dict[str, Any]] | The performance configuration to use for the Bedrock client. |
additionalModelRequestFields | Optional[Dict[str, Any]] | The additional model request fields to use for the Bedrock client. |
Name | Description |
---|---|
Iterator[BedrockStreamEvent] | An iterator over the Bedrock stream events. |
Name | Type | Description |
---|---|---|
messages | Iterable[BedrockMessageParam] | The messages to send to the Bedrock client. |
system | Optional[Union[str, List[Dict[str, str]]]] | The system message to send to the Bedrock client. |
modelId | str | The model ID to use for the Bedrock client. |
max_tokens | Optional[int] | The maximum number of tokens to generate. |
trace_id | Optional[str] | The trace ID to use for the Bedrock client. |
generation_name | Optional[str] | The name of the generation to use for the Bedrock client. |
inferenceConfig | Optional[Dict[str, Any]] | The inference configuration to use for the Bedrock client. |
toolConfig | Optional[Dict[str, Any]] | The tool configuration to use for the Bedrock client. |
guardrailConfig | Optional[Dict[str, Any]] | The guardrail configuration to use for the Bedrock client. |
performanceConfig | Optional[Dict[str, Any]] | The performance configuration to use for the Bedrock client. |
additionalModelRequestFields | Optional[Dict[str, Any]] | The additional model request fields to use for the Bedrock client. |
Name | Description |
---|---|
BedrockMessage | The response from the Bedrock client. |
Name | Description |
---|---|
[MaximBedrockAsyncClient](/sdk/python/references/logger/bedrock/async_client) | The async client. |