final | |
|---|---|
readonly | |
extends |
Result<array{_meta?: template-type<MetaObject, Arrayable, 'T'>, resultType: non-empty-string, completion: array{values: list<string>, total?: int, hasMore?: bool}}> |
implements |
ServerResult |
The result returned by the server for a completion/complete request.
| Methods | ||
|---|---|---|
public
|
__construct(array{values: list<string>, total?: int, hasMore?: bool} $completion, MetaObject $meta = new MetaObject())
|
# |
public
static
|
fromArray(array $data): static
|
# |
public
|
toArray(): array
|
# |
protected
|
getResultType(): string
|
# |
| Methods inherited from Nexus\Mcp\Core\Schema\Result |
|---|
jsonSerialize(), |
| Properties | |||
|---|---|---|---|
public
|
array{values: list<string>, total?: int, hasMore?: bool}
|
$completion
|
# |
| Properties inherited from Nexus\Mcp\Core\Schema\Result |
|---|
$meta |