ToolResult
class ToolResult implements Stringable
Methods
__construct(array $content, bool $isError, array|null $structuredContent = null, array|null $meta = null)
Create a tool call result.
static ToolResult
from(array $result)
Parse a tool call response.
string
text()
Get the combined text content.
string
__toString()
Convert the result to its text content.
Details
at line 20
__construct(array $content, bool $isError, array|null $structuredContent = null, array|null $meta = null)
Create a tool call result.
at line 33
static ToolResult
from(array $result)
Parse a tool call response.
at line 55
string
text()
Get the combined text content.
at line 73
string
__toString()
Convert the result to its text content.