Extension Types
Service Extensions
Service extensions provide configured access to external services:- LLM Service: Language model access (OpenAI, Ollama, IBM Granite, and more)
- Embedding Service: Text embedding generation for RAG and semantic search
- Platform API: File storage, vector databases, and other platform services
- MCP: Model Context Protocol integration
UI Extensions
UI extensions add rich interactive components to the user interface:- Trajectory: Visualize agent reasoning with step-by-step execution traces
- Citation: Display source references with clickable inline links
- Form: Collect structured user input through interactive forms
- Settings: Let users configure agent behavior and preferences
Authentication Extensions
Authentication extensions handle secure access to protected resources:- OAuth: Standardized OAuth-based authentication and token management
- Secrets: Secure storage and retrieval of API keys and credentials
Using Extensions with Dependency Injection
Extensions are injected into agent functions usingAnnotated type hints:
Checking Extension Availability
Extensions are optional by design. Always verify an extension is provided before using it:Suggesting Preferred Models
Service extensions accept model suggestions in priority order. The platform selects the first available model:Extension Reference
OAuth Extension
Enables OAuth-based authentication for secure access to protected resources on behalf of users. Particularly useful for MCP clients that need user identity for third-party tools.- Example: agentstack-sdk-py/examples/oauth.py
Secrets Extension
Provides secure storage and retrieval of sensitive data like API keys and tokens. Secrets can be requested before conversation start or dynamically during runtime.- Example: agentstack-sdk-py/examples/secrets_agent.py
- Documentation: Secrets Guide
Citation Extension
Renders inline citation icons with source information, optionally marking text ranges. Makes agent responses more transparent and verifiable.- Documentation: Citations Guide
Trajectory Extension
Tracks and visualizes agent reasoning steps and tool execution. Provides transparency into the agent’s decision-making process.- Documentation: Trajectory Guide
Form Extension
Collects structured data through interactive forms with fields like text inputs, dropdowns, date pickers, file uploads, and checkboxes. Forms can be presented initially or requested dynamically during conversations.- Example: agentstack-sdk-py/examples/request_form_agent.py
- Documentation: Forms Guide
Settings Extension
Gives users control over agent behavior through configurable parameters like thinking mode, response style, and other agent-specific options.- Example: agentstack-sdk-py/examples/settings_agent.py
- Documentation: Agent Settings Guide