Agent Management
Agent Instrumentation
Get instrumentation code for integrating xpander.ai capabilities into an existing AI Agent
Agent Instrumentation Command
The agent instrumentation
command retrieves the code snippet needed to integrate xpander.ai capabilities into an existing AI Agent (e.g., LlamaIndex, LangChain, or CrewAI).
Usage
Options
Option | Description |
---|---|
--framework <framework> | Optional. Target framework: llamaindex , langchain , crewai , or custom (default: auto-detect) |
--language <language> | Optional. Programming language: python , typescript , or javascript (default: python) |
Examples
Default Python Integration
Response:
TypeScript Integration
Response:
Notes
- The instrumentation code:
- Preserves your existing agent’s functionality
- Adds xpander.ai capabilities like state management
- Enables tool and interface integration
- Provides monitoring and observability
- API keys can be provided via:
- Code initialization
- Environment variables
- Configuration files
- Framework auto-detection uses your project’s dependencies