strands.types.multiagent
¶
Multi-agent related type definitions for the SDK.
MultiAgentInput = str | list[ContentBlock] | list[InterruptResponseContent]
module-attribute
¶
ContentBlock
¶
Bases: TypedDict
A block of content for a message that you pass to, or receive from, a model.
Attributes:
| Name | Type | Description |
|---|---|---|
cachePoint |
CachePoint
|
A cache point configuration to optimize conversation history. |
document |
DocumentContent
|
A document to include in the message. |
guardContent |
GuardContent
|
Contains the content to assess with the guardrail. |
image |
ImageContent
|
Image to include in the message. |
reasoningContent |
ReasoningContentBlock
|
Contains content regarding the reasoning that is carried out by the model. |
text |
str
|
Text to include in the message. |
toolResult |
ToolResult
|
The result for a tool request that a model makes. |
toolUse |
ToolUse
|
Information about a tool use request from a model. |
video |
VideoContent
|
Video to include in the message. |
citationsContent |
CitationsContentBlock
|
Contains the citations for a document. |
Source code in strands/types/content.py
74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 | |
InterruptResponseContent
¶
Bases: TypedDict
Content block containing a user response to an interrupt.
Attributes:
| Name | Type | Description |
|---|---|---|
interruptResponse |
InterruptResponse
|
User response to an interrupt event. |
Source code in strands/types/interrupt.py
138 139 140 141 142 143 144 145 | |