[ Index ]

PHP Cross Reference of WordPress Trunk (Updated Daily)

Search

title

Body

[close]

/wp-includes/php-ai-client/src/Tools/DTO/ -> FunctionCall.php (summary)

(no description)

File Size: 128 lines (4 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

FunctionCall:: (7 methods):
  __construct()
  getId()
  getName()
  getArgs()
  getJsonSchema()
  toArray()
  fromArray()


Class: FunctionCall  - X-Ref

Represents a function call request from an AI model.

This DTO encapsulates information about a function that the AI model
wants to invoke, including the function name and its arguments.

__construct(?string $id = null, ?string $name = null, $args = null)   X-Ref
Constructor.

param: string|null $id Unique identifier for this function call.
param: string|null $name The name of the function to call.
param: mixed $args The arguments to pass to the function.

getId()   X-Ref
Gets the function call ID.

return: string|null The function call ID.

getName()   X-Ref
Gets the function name.

return: string|null The function name.

getArgs()   X-Ref
Gets the function arguments.

return: mixed The function arguments.

getJsonSchema()   X-Ref
{@inheritDoc}


toArray()   X-Ref
{@inheritDoc}

return: FunctionCallArrayShape

fromArray(array $array)   X-Ref
{@inheritDoc}




Generated : Sat Jun 13 09:38:55 2026 Cross-referenced by PHPXref