Delegate text generation to another AI model. Use this when you need capabilities
or perspectives from a different model than yourself.
Args:
provider: The AI provider to use (e.g., "openai", "anthropic", "google", "groq")
model: The specific model identifier (e.g., "gpt-4o", "claude-3-5-sonnet-20241022", "gemini-2.0-flash-exp")
prompt: The instruction or query to send to the external model
Returns:
The text response from the external model, or an error message if the request fails
Example usage:
To get a different perspective: provider="anthropic", model="claude-3-5-sonnet-20241022", prompt="Analyze this problem from a different angle..."
To leverage specialized models: provider="deepseek", model="deepseek-coder", prompt="Write optimized Python code for..."