{"record":{"id":"05ad5c44806f9bfc","repo":"microsoft/autogen","slug":"bedrock-info-is-required-for-anthropicbedrockchatc","errorCode":null,"errorMessage":"bedrock_info is required for AnthropicBedrockChatCompletionClient","messagePattern":"bedrock_info is required for AnthropicBedrockChatCompletionClient","errorType":"exception","errorClass":"ValueError","httpStatus":null,"severity":"error","filePath":"python/packages/autogen-ext/src/autogen_ext/models/anthropic/_anthropic_client.py","lineNumber":1360,"sourceCode":"\n    def __init__(self, **kwargs: Unpack[AnthropicBedrockClientConfiguration]):\n        if \"model\" not in kwargs:\n            raise ValueError(\"model is required for  AnthropicBedrockChatCompletionClient\")\n\n        self._raw_config: Dict[str, Any] = dict(kwargs).copy()\n        copied_args = dict(kwargs).copy()\n\n        model_info: Optional[ModelInfo] = None\n        if \"model_info\" in kwargs:\n            model_info = kwargs[\"model_info\"]\n            del copied_args[\"model_info\"]\n\n        bedrock_info: Optional[BedrockInfo] = None\n        if \"bedrock_info\" in kwargs:\n            bedrock_info = kwargs[\"bedrock_info\"]\n\n        if bedrock_info is None:\n            raise ValueError(\"bedrock_info is required for AnthropicBedrockChatCompletionClient\")\n\n        # Handle bedrock_info\n        aws_region = bedrock_info[\"aws_region\"]\n        aws_access_key: Optional[str] = None\n        aws_secret_key: Optional[str] = None\n        aws_session_token: Optional[str] = None\n        if all(key in bedrock_info for key in (\"aws_access_key\", \"aws_secret_key\", \"aws_session_token\")):\n            aws_access_key = bedrock_info[\"aws_access_key\"]\n            aws_secret_key = bedrock_info[\"aws_secret_key\"]\n            aws_session_token = bedrock_info[\"aws_session_token\"]\n\n        client = AsyncAnthropicBedrock(\n            aws_access_key=aws_access_key,\n            aws_secret_key=aws_secret_key,\n            aws_session_token=aws_session_token,\n            aws_region=aws_region,\n        )\n        create_args = _create_args_from_config(copied_args)","sourceCodeStart":1342,"sourceCodeEnd":1378,"githubUrl":"https://github.com/microsoft/autogen/blob/027ecf0a379bcc1d09956d46d12d44a3ad9cee14/python/packages/autogen-ext/src/autogen_ext/models/anthropic/_anthropic_client.py#L1342-L1378","documentation":"Error \"bedrock_info is required for AnthropicBedrockChatCompletionClient\" thrown in microsoft/autogen.","triggerScenarios":"Thrown at python/packages/autogen-ext/src/autogen_ext/models/anthropic/_anthropic_client.py:1360 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Provide BedrockInfo with region/credentials"],"exampleFix":"Pass bedrock_info=BedrockInfo(...) to the client","handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"027ecf0a379bcc1d09956d46d12d44a3ad9cee14","analyzedAt":"2026-08-15T03:38:00.719Z","schemaVersion":2},"datasetVersion":"2026-08-15T22:17:37.221Z"}