You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
swarms/examples/single_agent/llms/README.md

37 lines
1.6 KiB

# LLM Integration Examples
This directory contains examples demonstrating integration with various Large Language Model providers.
## Examples
### Azure OpenAI
- [azure_agent_api_verison.py](azure_agent_api_verison.py) - Azure API version handling
- [azure_agent.py](azure_agent.py) - Azure OpenAI integration
- [azure_model_support.py](azure_model_support.py) - Azure model support
### Claude
- [claude_4_example.py](claude_examples/claude_4_example.py) - Claude 4 integration
- [claude_4.py](claude_examples/claude_4.py) - Claude 4 implementation
- [swarms_claude_example.py](claude_examples/swarms_claude_example.py) - Swarms Claude integration
### DeepSeek
- [deepseek_r1.py](deepseek_examples/deepseek_r1.py) - DeepSeek R1 model
- [fast_r1_groq.py](deepseek_examples/fast_r1_groq.py) - Fast R1 with Groq
- [grok_deepseek_agent.py](deepseek_examples/grok_deepseek_agent.py) - Grok DeepSeek integration
### Mistral
- [mistral_example.py](mistral_example.py) - Mistral model integration
### OpenAI
- [4o_mini_demo.py](openai_examples/4o_mini_demo.py) - GPT-4o Mini demonstration
- [reasoning_duo_batched.py](openai_examples/reasoning_duo_batched.py) - Batched reasoning with OpenAI
- [test_async_litellm.py](openai_examples/test_async_litellm.py) - Async LiteLLM testing
### Qwen
- [qwen_3_base.py](qwen_3_base.py) - Qwen 3 base model
## Overview
These examples demonstrate how to integrate Swarms agents with various LLM providers including OpenAI, Anthropic Claude, Azure OpenAI, Mistral, DeepSeek, and Qwen. Each example shows provider-specific configurations, API handling, and best practices.