sdk-python icon indicating copy to clipboard operation
sdk-python copied to clipboard

A model-driven approach to building AI agents in just a few lines of code.

Results 128 sdk-python issues
Sort by recently updated
recently updated
newest added

### Problem Summary When using AWS Bedrock Guardrails with separate custom messages for input and output blocking, the `handle_redact_content` function in `src/strands/event_loop/streaming.py` only processes `redactAssistantContentMessage` and completely ignores `redactUserContentMessage`. This...

## Description This is a fix for thr below bug: _[BUG] OpenTelemetry token/cost metrics double-counted in Langfuse due to duplicate reporting on parent and child spans #1267 ## Related Issues_...

size/xs

### Checks - [x] I have updated to the lastest minor and patch version of Strands - [x] I have checked the documentation and this is not expected behavior -...

bug

## Description Add support for the _meta field in MCP tool results to enable MCP servers to pass arbitrary metadata alongside tool outputs. This allows tracking of token usage, performance...

size/s

## Description #881 ```python # file:src/strands/tools/mcp/mcp_types.py # because it is a TypedDict, we use `_meta` instead of `meta`. class MCPToolResult(ToolResult): _meta: NotRequired[Dict[str, Any]] # add logic, structuredContent: NotRequired[Dict[str, Any]] #...

## Description This PR added a protection from concurrent invocations to the same agent ## Related Issues https://github.com/strands-agents/sdk-python/issues/1176 ## Type of Change Bug fix ## Testing Added both unit test...

size/s

### Problem Statement We currently own a Rust based application and want to enhance it to supports multi agent workflows. We are exploring various frameworks which we can reuse if...

enhancement
area-language

## Description Our app creates many MCP clients (multi user/tenant). Over time we saw a file descriptor leak and eventually tracked it down to the async-io event loop in the...

size/s

## Description This PR fixes a KeyError: 'qualifiers' that occurred when processing Bedrock guardContent. The original bug was caused by directly accessing the qualifiers field. The change now assumes guardContent.text...

## Description This PR fixes a bug where AgentResult would contain an empty message list if the model returned a stream with no content events as noticed with Claude 3...

size/xs