Agent settings provide global configuration options that control how your agent behaves, what instructions it follows, and how it interacts with other agents. These settings are applied automatically in the agent runtime and can also be accessed or overridden via the SDK.
All agent settings can be accessed and modified programmatically using the xpander.ai SDK:
Copy
Ask AI
from xpander_sdk import XpanderClient# Initialize clientxpander_client = XpanderClient(api_key="your-api-key")# Get existing agentagent = xpander_client.agents.get("your-agent-id")# Update instructionsagent.update_instructions( role="You are the LinkedIn Research Assistant, specialized in finding and analyzing profile data.", goal="Help users discover relevant professionals and understand their background and experience.", instructions="Always maintain a professional tone. Prioritize accuracy over speed.")# Update model settingsagent.update_model(provider="openai", model="gpt-4.1")# Configure delegationagent.configure_delegation(type="router")# Add example promptsagent.add_prompt("Find LinkedIn profiles of AI researchers in California")agent.add_prompt("Summarize the career trajectory of [username]")# Save changesagent.sync()