
Available Default Functions
Core Platform Functions
These functions are available regardless of which LLM you use.OpenAI LLM Functions
Available when your agent uses an OpenAI model.Claude LLM Functions
Available when your agent uses an Anthropic Claude model.Google Gemini LLM Functions
Available when your agent uses a Google Gemini model.When to Use Default Functions
Default functions cover the most common actions an agent needs during a session. You do not need to create or configure them — just enable the ones relevant to your use case and instruct the agent in its system prompt when to call them. Common patterns:- End the session automatically once the user’s query is resolved.
- Search the web when the agent needs real-time or external information.
- Store customer preferences in memory to personalise future sessions.
- Query the knowledge base for product details or policy documents.
fetch_memory
fetch_memory is a pre-session function that retrieves previously stored memory and injects it into the agent’s context before the conversation begins. The retrieved memory is placed into a dynamic variable that you define, which you can then reference anywhere in the agent’s system prompt.
How It Works
When a session starts,fetch_memory looks up the memory stored under the given memoryId and makes it available as a dynamic variable named by paramName. From that point on, you can reference the memory in your system prompt using the standard double-curly-brace syntax — {{ paramName }}.
Parameters
memoryId supports both top-level session variables ({{ claimId }}) and nested tool body paths ({{ body.userDetails.id }}). This makes it straightforward to scope memory to the specific customer or entity being passed in the request payload — no extra configuration needed.Example
If no memory exists for the given
memoryId, the dynamic variable returns null. Handle this gracefully in your system prompt — for example: “If {{ claimMemory }} is empty, treat this as a new customer with no prior history.”update_memory
update_memory is a post-session function that extracts key information from the conversation and saves it under a given memoryId. If memory already exists at that ID, the function merges the new conversation with the prior memory to produce an updated record — nothing is lost.
How It Works
After the session ends, the LLM reads the full conversation alongside yourprompt instructions, extracts the relevant information, and writes it to the memoryId. If existing memory is found at that ID, it is combined with the new extraction so the stored record stays cumulative across sessions.
Parameters
Example
Availability
Next Steps
Agent Handoff
Route conversations to a specialized agent
Custom Functions
Add your own API calls for the LLM to execute