Documentation Index
Fetch the complete documentation index at: https://mintlify.com/Juiiceee/synto-mobile/llms.txt
Use this file to discover all available pages before exploring further.
Overview
Synto Mobile provides two tool creator functions that convertSolanaAgentKit actions into framework-specific tools for AI integration. These functions enable you to use the agent with popular AI frameworks like LangChain and Vercel AI SDK.
Both functions are exported from the main agent module:
These functions automatically handle up to 128 actions. If more actions are provided, only the first 127 will be converted, and a warning will be logged.
createVercelAITools
Converts agent actions into tools compatible with the Vercel AI SDK’sstreamText and generateText functions.
Function signature
The configured agent instance that will execute the tool operations.
Array of actions to convert into Vercel AI tools. Typically use
agent.actions to include all registered plugin actions.Returns
Object mapping action names to Vercel AI tool objects. Each tool includes:
description- Natural language description of what the tool doesinputSchema- Zod schema for validating tool inputs
Example usage
Real implementation
Fromhooks/use-agent.tsx:54-59:
Tool structure
Each generated tool has this structure:createLangchainTools
Converts agent actions into LangChain-compatible tool instances that can be used with LangChain agents and chains.Function signature
The configured agent instance that will execute the tool operations.
Array of actions to convert into LangChain tools. Typically use
agent.actions to include all registered plugin actions.Returns
Array of LangChain tool instances. Each tool includes:
name- Action name (e.g., “TRANSFER”, “GET_BALANCE”)description- Detailed description including similes and examplesschema- Zod object schema for input validation- Handler function that executes the action
Example usage
Tool description format
LangChain tools include rich descriptions with examples:Action limits
Both functions enforce a maximum of 128 actions (actually 127 due to implementation):Related resources
SolanaAgentKit
Core agent class documentation
Agent builder
Factory function for creating agents
AI agent overview
Understanding the agent system
useAgent hook
React hook for agent integration