Parameter Objects
- name(- str): The name of the parameter.
- description(- Optional[str]): The description of the parameter.
- type(- str): The type of the parameter.
- default(- Any): The default value of the parameter.
- required(- bool): Whether the parameter is required.
to_ollama
Dict[str, Any]: The parameter in dictionary format.
FunctionSchema Objects
__init__
- function(- Union[Callable, BaseModel]): The function to consume.
to_ollama
Dict[str, Any]: The function schema in dictionary format.
get_schema_list
- items(- List[Union[BaseModel, Callable]]): The functions or BaseModels to get the schemas for.
List[Dict[str, Any]]: A list of function schemas.
get_schema
- item(- Union[BaseModel, Callable]): The function or BaseModel to get the schema for.
Dict[str, Any]: The function schema.
convert_python_type_to_json_type
- param_type(- str): The type of the parameter.
str: The JSON type.
route_and_execute
- query(- str): The query to route and execute.
- llm(- BaseLLM): The LLM to use.
- functions(- List[Callable]): The functions to execute.
- layer(- Layer): The layer to use.
Any: The result of the function.
