Enable AI models to interact with external functions and data sources using tools.
tools
key in the prompt’s configuration block (---
).
latitude/search
: Performs web searches to find up-to-date information.latitude/code
: Executes code snippets.latitude/extract
: Extracts structured data from text.latitude/search
) in the tools
list.
Learn more about using Latitude Tools.
tools
list:
description
: A clear explanation for the AI model of what the tool does.parameters
: A JSON Schema defining the expected input arguments for the tool.get_stock_price
, the Latitude SDK in your application will receive a tool call request. Your code needs to:
type
: object
, string
, number
, integer
, boolean
, array
.description
: Essential for explaining parameters to the model.properties
(for object
type): Defines nested parameters.required
(for object
type): Lists mandatory properties.enum
(for string
, number
): Specifies allowed values.items
(for array
type): Defines the schema for array elements.