Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions python/semantic_kernel/agents/bedrock/bedrock_agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ async def create_and_prepare_agent(
env_file_encoding=env_file_encoding,
)
except ValidationError as e:
raise AgentInitializationException("Failed to initialize the Amazon Bedrock Agent settings.") from e
raise AgentInitializationException(f"Failed to initialize the Amazon Bedrock Agent settings: {e}") from e

import boto3
from botocore.exceptions import ClientError
Expand All @@ -237,7 +237,7 @@ async def create_and_prepare_agent(
)
except ClientError as e:
logger.error(f"Failed to create agent {name}.")
raise AgentInitializationException("Failed to create the Amazon Bedrock Agent.") from e
raise AgentInitializationException(f"Failed to create the Amazon Bedrock Agent: {e}") from e

bedrock_agent = cls(
response["agent"],
Expand Down
2 changes: 1 addition & 1 deletion python/semantic_kernel/connectors/azure_cosmos_db.py
Original file line number Diff line number Diff line change
Expand Up @@ -922,7 +922,7 @@ def _lambda_parser(self, node: ast.AST) -> Any:
case ast.Constant():
# Quote strings, leave numbers as is
if isinstance(node.value, str):
return f"'{node.value}'"
return "'" + node.value.replace("'", "''") + "'"
if isinstance(node.value, (float, int)):
return str(node.value)
if node.value is None:
Expand Down
Loading
Loading