Blocks
datapizza.type.Block
datapizza.type.TextBlock
Bases: Block
A class for storing the text response from a client.
datapizza.type.MediaBlock
datapizza.type.ThoughtBlock
Bases: Block
A class for storing the thought from a client.
datapizza.type.FunctionCallBlock
Bases: Block
A class for storing the function call from a client.
__init__
Initialize a FunctionCallBlock object.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
id
|
str
|
The id of the function call block. |
required |
arguments
|
dict[str, Any]
|
The arguments of the function call block. |
required |
name
|
str
|
The name of the function call block. |
required |
tool
|
Tool
|
The tool of the function call block. |
required |
datapizza.type.FunctionCallResultBlock
Bases: Block
A class for storing the function call response from a client.
__init__
Initialize a FunctionCallResultBlock object.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
id
|
str
|
The id of the function call result block. |
required |
tool
|
Tool
|
The tool of the function call result block. |
required |
result
|
str
|
The result of the function call result block. |
required |
datapizza.type.StructuredBlock
Bases: Block
A class for storing the structured response from a client.