Skip to main content
The AI Agents House SDK can be integrated with any LLM provider through manual tracking or custom wrapper implementations. This guide shows how to create monitoring for custom LLM providers not directly supported by the SDK.

When to Use Custom Integration

Use custom integration when:
  • Unsupported Providers: Working with LLMs not directly supported (Cohere, PaLM, local models)
  • Custom Infrastructure: Using internally hosted or modified LLM implementations
  • Specialized Workflows: Complex multi-model or agent-to-agent communication patterns
  • Legacy Systems: Integrating with existing agent implementations

Basic Custom Integration Pattern

Wrapper Class Approach

Create a wrapper class that implements monitoring around your LLM client:

Proxy Pattern Integration

For more advanced integration, implement a proxy that intercepts LLM calls:

Specific Provider Examples

Cohere Integration

Local Model Integration

Multi-Model Workflows

Agent-to-Agent Communication

Best Practices for Custom Integration

Testing Custom Integrations

Next Steps

Manual Tracking

Learn detailed manual tracking techniques

Performance Optimization

Optimize your custom integration

Testing Guide

Test your integration thoroughly

Troubleshooting

Debug integration issues