Skip to main content

Tool Function Call

The tool_function_call function calls a tool function registered in the LLM extension.

  • Function name: extensions.com.cloud-apim.llm-extension.tool_function_call

Parameters

ParameterTypeRequiredDescription
providerstringyesThe tool function provider id
functionstringyesThe tool function name
argumentsstring/objectyesThe tool function arguments

Output

Returns the tool function result as a JSON value.

Example

{
"kind": "call",
"function": "extensions.com.cloud-apim.llm-extension.tool_function_call",
"args": {
"provider": "tool-function_xxxxx",
"function": "get_weather",
"arguments": "{\"city\": \"Paris\"}"
},
"result": "tool_result"
}