Content
interface Content implements Arrayable, Stringable
Methods
array
void
setMeta(array|string $meta, mixed $value = null)
Set content metadata.
string
__toString()
Get the content as a string.
Details
in
Arrayable at line 17
array
toArray()
Get the instance as an array.
at line 23
array
toTool(Tool $tool)
Format the content for a tool response.
at line 30
array
toPrompt(Prompt $prompt)
Format the content for a prompt response.
at line 37
array
toResource(Resource $resource)
Format the content for a resource response.
at line 44
void
setMeta(array|string $meta, mixed $value = null)
Set content metadata.
at line 49
string
__toString()
Get the content as a string.