Skip to main content

Functions

A Function accepts the following parameters:
  • name (str): The name of the function
  • description (str): A description of what the function does
  • input_schema (dict): Schema defining the expected input parameters
  • output_schema (dict): Schema defining the expected output format
  • prompt (str): The prompt template used by the function
  • api_key (str): The API key for model access
  • model (str): The name of the model to use
  • base_url (str): Optional base URL for custom LiteLLM server deployments
Example of how to create a function: