MCP PHP SDK

PromptReference implements JsonSerializable

Identifies a prompt.

Tags
author

Kyrian Obikwelu koshnawaza@gmail.com

Table of Contents

Interfaces

JsonSerializable

Properties

$name  : string
$type  : string

Methods

__construct()  : mixed
jsonSerialize()  : array{type: string, name: string}

Properties

Methods

__construct()

public __construct(string $name) : mixed
Parameters
$name : string

The name of the prompt or prompt template

jsonSerialize()

public jsonSerialize() : array{type: string, name: string}
Return values
array{type: string, name: string}

        
On this page

Search results