tools
autogen.tools.get_function_schema
get_function_schema
Get a JSON schema for a function as defined by the OpenAI API
Parameters:Name | Description |
---|---|
f | The function to get the JSON schema for Type: Callable[..., Any] |
name | The name of the function Type: str | None Default: None |
description | The description of the function Type: str |
Type | Description |
---|---|
dict[str, typing.Any] | A JSON schema for the function |