MCP PHP SDK

ElicitationSchema implements JsonSerializable

FinalYes

Schema wrapper for elicitation requestedSchema (JSON Schema object type).

Represents an object schema with primitive property definitions and optional required fields.

Tags
author

Johannes Wachter johannes@sulu.io

Table of Contents

Interfaces

JsonSerializable

Properties

$properties  : array<string|int, mixed>
$required  : array<string|int, mixed>

Methods

__construct()  : mixed
fromArray()  : self
Create an ElicitationSchema from array data.
jsonSerialize()  : array{type: string, properties: array, required?: string[]}

Properties

Methods

fromArray()

Create an ElicitationSchema from array data.

public static fromArray(array{type?: string, properties: array, required?: string[]} $data) : self
Parameters
$data : array{type?: string, properties: array, required?: string[]}
Return values
self

jsonSerialize()

public jsonSerialize() : array{type: string, properties: array, required?: string[]}
Return values
array{type: string, properties: array, required?: string[]}

        
On this page

Search results