| Name | Type | Description |
|---|---|---|
function* | Mapping[str, Any] | type | Callable | BaseTool | A dictionary, Pydantic If a dictionary is passed in, it is assumed to already be a valid OpenAI
function, a JSON schema with top-level |
strict | bool | None | Default: None |
Convert a raw function/class to an OpenAI function.
description and parameters keys are now optional. Only name is
required and guaranteed to be part of the output.
If True, model output is guaranteed to exactly match the JSON Schema
provided in the function definition.
If None, strict argument will not be included in function definition.