bob_llm.tool_utils
Attributes
Classes
Parameters for a function definition. |
|
Definition of a function for an LLM tool. |
|
OpenAI-compatible tool definition. |
Functions
|
Inspect a module and build a list of tool definitions. |
Module Contents
- class bob_llm.tool_utils.FunctionParameters
Bases:
TypedDictParameters for a function definition.
- type: str
- properties: Dict[str, Any]
- required: List[str]
- class bob_llm.tool_utils.FunctionDefinition
Bases:
TypedDictDefinition of a function for an LLM tool.
- name: str
- description: str
- parameters: FunctionParameters
- class bob_llm.tool_utils.Tool
Bases:
TypedDictOpenAI-compatible tool definition.
- type: str
- function: FunctionDefinition
- bob_llm.tool_utils.TYPE_MAP