ADC Function definition, a custom version of the OpenAI Function definition. https://github.com/openai/openai-python/blob/main/src/openai/types/shared/function_definition.py
| 48 | |
| 49 | |
| 50 | class FunctionDefinition(BaseModel): |
| 51 | """ |
| 52 | ADC Function definition, a custom version of the OpenAI Function definition. |
| 53 | https://github.com/openai/openai-python/blob/main/src/openai/types/shared/function_definition.py |
| 54 | """ |
| 55 | |
| 56 | name: str |
| 57 | """The name of the function to be called. |
| 58 | |
| 59 | Must be a-z, A-Z, 0-9, or contain underscores and dashes, with a maximum length |
| 60 | of 64. |
| 61 | """ |
| 62 | description: Optional[str] = None |
| 63 | """ |
| 64 | A description of what the function does, used by the model to choose when and |
| 65 | how to call the function. |
| 66 | """ |
| 67 | parameters: ToolProperty # Optional[FunctionParameters] = None |
| 68 | """The parameters the functions accepts, described as a JSON Schema object. |
| 69 | |
| 70 | See the |
| 71 | [guide](https://platform.openai.com/docs/guides/text-generation/function-calling) |
| 72 | for examples, and the |
| 73 | [JSON Schema reference](https://json-schema.org/understanding-json-schema/) for |
| 74 | documentation about the format. |
| 75 | |
| 76 | Omitting `parameters` defines a function with an empty parameter list. |
| 77 | """ |
| 78 | |
| 79 | |
| 80 | class Tool(BaseModel): |
nothing calls this directly
no outgoing calls
no test coverage detected