XpanderClient API Reference for the xpander SDK
XpanderClient
is the main entry point for the xpander SDK. It provides methods for managing agents and utility functions for working with LLM responses.
Parameter | Type | Required | Description |
---|---|---|---|
api_key / apiKey | string | Yes | Your xpander API key |
should_reset_cache / shouldResetCache | boolean | No | Whether to reset the cache when creating the client |
Parameter | Type | Required | Description |
---|---|---|---|
agent_id / agentId | string | Yes | ID of the agent to retrieve |
Agent
object.
Agent
objects.
Parameter | Type | Required | Description |
---|---|---|---|
name | string | Yes | Name of the agent |
description | string | No | Description of the agent |
agent_type / agentType | string | Yes | Type of agent: “regular” or “agentic_interface” |
instructions | string | No | Instructions for the agent |
Agent
object.