PromptResult
class PromptResult implements Stringable
Methods
__construct(array $messages, string|null $description = null, array|null $meta = null)
Create a prompt result.
static PromptResult
from(array $result)
Parse a prompt response.
string
text()
Get the combined text content.
string
__toString()
Convert the result to its text content.
Details
at line 19
__construct(array $messages, string|null $description = null, array|null $meta = null)
Create a prompt result.
at line 31
static PromptResult
from(array $result)
Parse a prompt response.
at line 52
string
text()
Get the combined text content.
at line 76
string
__toString()
Convert the result to its text content.