microsoft/autogen · error · ValueError
model is required for AnthropicBedrockChatCompletionClient
Error message
model is required for AnthropicBedrockChatCompletionClient
What it means
Error "model is required for AnthropicBedrockChatCompletionClient" thrown in microsoft/autogen.
Source
Thrown at python/packages/autogen-ext/src/autogen_ext/models/anthropic/_anthropic_client.py:1345
aws_region="<aws_region>",
),
)
result = await anthropic_client.create([UserMessage(content="What is the capital of France?", source="user")]) # type: ignore
print(result)
if __name__ == "__main__":
asyncio.run(main())
"""
component_type = "model"
component_config_schema = AnthropicBedrockClientConfigurationConfigModel
component_provider_override = "autogen_ext.models.anthropic.AnthropicBedrockChatCompletionClient"
def __init__(self, **kwargs: Unpack[AnthropicBedrockClientConfiguration]):
if "model" not in kwargs:
raise ValueError("model is required for AnthropicBedrockChatCompletionClient")
self._raw_config: Dict[str, Any] = dict(kwargs).copy()
copied_args = dict(kwargs).copy()
model_info: Optional[ModelInfo] = None
if "model_info" in kwargs:
model_info = kwargs["model_info"]
del copied_args["model_info"]
bedrock_info: Optional[BedrockInfo] = None
if "bedrock_info" in kwargs:
bedrock_info = kwargs["bedrock_info"]
if bedrock_info is None:
raise ValueError("bedrock_info is required for AnthropicBedrockChatCompletionClient")
# Handle bedrock_info
aws_region = bedrock_info["aws_region"]View on GitHub (pinned to 027ecf0a37)
Solutions
- Pass the model parameter
Example fix
AnthropicBedrockChatCompletionClient(model='claude-...', bedrock_info=...)
When it happens
Trigger: Thrown at python/packages/autogen-ext/src/autogen_ext/models/anthropic/_anthropic_client.py:1345 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of microsoft/autogen@027ecf0a37 (2026-08-15).
Data as JSON: /api/errors/cda1f8293af83f39.
Report an issue: GitHub.