Title: wp-includes/php-ai-client/src/Tools/DTO/FunctionCall.php | Developer.WordPress.org

---

# File: wp-includes/php-ai-client/src/Tools/DTO/FunctionCall.php

 * method[FunctionCall::toArray()](https://developer.wordpress.org/reference/classes/wordpress-aiclient-tools-dto-functioncall/toarray/)
 * {@inheritDoc}
 * Used by [0 functions](https://developer.wordpress.org/reference/classes/wordpress-aiclient-tools-dto-functioncall/toarray/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/classes/wordpress-aiclient-tools-dto-functioncall/toarray/#uses)
   | Source: [wp-includes/php-ai-client/src/Tools/DTO/FunctionCall.php:105](https://github.com/WordPress/wordpress-develop/blob/7.0/src/wp-includes/php-ai-client/src/Tools/DTO/FunctionCall.php#L105-L118)
 * method[FunctionCall::fromArray()](https://developer.wordpress.org/reference/classes/wordpress-aiclient-tools-dto-functioncall/fromarray/)
 * {@inheritDoc}
 * Used by [1 function](https://developer.wordpress.org/reference/classes/wordpress-aiclient-tools-dto-functioncall/fromarray/#used-by)
   | Uses [1 function](https://developer.wordpress.org/reference/classes/wordpress-aiclient-tools-dto-functioncall/fromarray/#uses)
   | Source: [wp-includes/php-ai-client/src/Tools/DTO/FunctionCall.php:124](https://github.com/WordPress/wordpress-develop/blob/7.0/src/wp-includes/php-ai-client/src/Tools/DTO/FunctionCall.php#L124-L127)
 * class[FunctionCall](https://developer.wordpress.org/reference/classes/wordpress-aiclient-tools-dto-functioncall/)
 * Represents a function call request from an AI model.
 * Used by [0 functions](https://developer.wordpress.org/reference/classes/wordpress-aiclient-tools-dto-functioncall/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/classes/wordpress-aiclient-tools-dto-functioncall/#uses)
   | Source: [wp-includes/php-ai-client/src/Tools/DTO/FunctionCall.php:20](https://github.com/WordPress/wordpress-develop/blob/7.0/src/wp-includes/php-ai-client/src/Tools/DTO/FunctionCall.php#L20-L128)
 * method[FunctionCall::__construct()](https://developer.wordpress.org/reference/classes/wordpress-aiclient-tools-dto-functioncall/__construct/)
 * Constructor.
 * Used by [1 function](https://developer.wordpress.org/reference/classes/wordpress-aiclient-tools-dto-functioncall/__construct/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/classes/wordpress-aiclient-tools-dto-functioncall/__construct/#uses)
   | Source: [wp-includes/php-ai-client/src/Tools/DTO/FunctionCall.php:47](https://github.com/WordPress/wordpress-develop/blob/7.0/src/wp-includes/php-ai-client/src/Tools/DTO/FunctionCall.php#L47-L55)
 * method[FunctionCall::getId()](https://developer.wordpress.org/reference/classes/wordpress-aiclient-tools-dto-functioncall/getid/)
 * Gets the function call ID.
 * Used by [0 functions](https://developer.wordpress.org/reference/classes/wordpress-aiclient-tools-dto-functioncall/getid/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/classes/wordpress-aiclient-tools-dto-functioncall/getid/#uses)
   | Source: [wp-includes/php-ai-client/src/Tools/DTO/FunctionCall.php:63](https://github.com/WordPress/wordpress-develop/blob/7.0/src/wp-includes/php-ai-client/src/Tools/DTO/FunctionCall.php#L63-L66)
 * method[FunctionCall::getName()](https://developer.wordpress.org/reference/classes/wordpress-aiclient-tools-dto-functioncall/getname/)
 * Gets the function name.
 * Used by [0 functions](https://developer.wordpress.org/reference/classes/wordpress-aiclient-tools-dto-functioncall/getname/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/classes/wordpress-aiclient-tools-dto-functioncall/getname/#uses)
   | Source: [wp-includes/php-ai-client/src/Tools/DTO/FunctionCall.php:74](https://github.com/WordPress/wordpress-develop/blob/7.0/src/wp-includes/php-ai-client/src/Tools/DTO/FunctionCall.php#L74-L77)
 * method[FunctionCall::getArgs()](https://developer.wordpress.org/reference/classes/wordpress-aiclient-tools-dto-functioncall/getargs/)
 * Gets the function arguments.
 * Used by [0 functions](https://developer.wordpress.org/reference/classes/wordpress-aiclient-tools-dto-functioncall/getargs/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/classes/wordpress-aiclient-tools-dto-functioncall/getargs/#uses)
   | Source: [wp-includes/php-ai-client/src/Tools/DTO/FunctionCall.php:85](https://github.com/WordPress/wordpress-develop/blob/7.0/src/wp-includes/php-ai-client/src/Tools/DTO/FunctionCall.php#L85-L88)
 * method[FunctionCall::getJsonSchema()](https://developer.wordpress.org/reference/classes/wordpress-aiclient-tools-dto-functioncall/getjsonschema/)
 * {@inheritDoc}
 * Used by [1 function](https://developer.wordpress.org/reference/classes/wordpress-aiclient-tools-dto-functioncall/getjsonschema/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/classes/wordpress-aiclient-tools-dto-functioncall/getjsonschema/#uses)
   | Source: [wp-includes/php-ai-client/src/Tools/DTO/FunctionCall.php:94](https://github.com/WordPress/wordpress-develop/blob/7.0/src/wp-includes/php-ai-client/src/Tools/DTO/FunctionCall.php#L94-L97)