final | |
|---|---|
readonly | |
extends |
Result |
implements |
ClientResult |
The client's response to a sampling/createMessage request from the server. The client should inform the user before returning the sampled message, to allow them to inspect the response (human in the loop) and decide whether to allow the server to see it.
| Methods | ||
|---|---|---|
public
|
__construct(
string $model,
Role $role,
ContentMember|list<ContentMember> $content,
?string $stopReason = null,
MetaObject $meta = new MetaObject(),
)
|
# |
public
static
|
fromArray(array<string, mixed> $data): static
|
# |
public
|
toArray(): array
|
# |
public
|
jsonSerialize(): array
|
# |
| Properties | |||
|---|---|---|---|
public
|
non-empty-string
|
$model
|
# |
public
|
ContentMember|list<ContentMember>
|
$content
|
# |
public
|
null|non-empty-string
|
$stopReason
|
# |
public
|
Role
|
$role
|
# |
| Properties inherited from Nexus\Mcp\Core\Schema\Result |
|---|
$meta |