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.Dict[str, Any]
: The parameter in dictionary format.
function
(Union[Callable, BaseModel]
): The function to consume.Dict[str, Any]
: The function schema in dictionary format.
items
(List[Union[BaseModel, Callable]]
): The functions or BaseModels to get the schemas for.List[Dict[str, Any]]
: A list of function schemas.
item
(Union[BaseModel, Callable]
): The function or BaseModel to get the schema for.Dict[str, Any]
: The function schema.
param_type
(str
): The type of the parameter.str
: The JSON type.
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.