Method ToFunctionArguments
- Namespace
- Oscova.Agents.Utilities
- Assembly
- Oscova.Agents.dll
ToFunctionArguments(JsonElement?)
Converts an optional JSON object into function arguments.
public static AIFunctionArguments ToFunctionArguments(this JsonElement? arguments)Parameters
argumentsJsonElement?-
The JSON object supplied by an external tool call.
Returns
- AIFunctionArguments
-
A function argument bag; non-object or missing payloads return an empty bag.