Skip to main content
Start your Swarms journey with single-agent examples. Learn how to create agents, use tools, process images, integrate with different LLM providers, and publish to the marketplace.

What You’ll Learn

TopicDescription
Agent BasicsCreate and configure individual agents
Tool IntegrationEquip agents with callable tools and functions
Vision CapabilitiesProcess images and multi-modal inputs
LLM ProvidersConnect to OpenAI, Anthropic, Groq, and more
UtilitiesStreaming, output types, and marketplace publishing

Individual Agent Examples

Core Agent Usage

ExampleDescriptionLink
Basic AgentFundamental agent creation and executionView Example

Tool Usage

ExampleDescriptionLink
Agents with Vision and Tool UsageCombine vision and tools in one agentView Example
Agents with Callable ToolsEquip agents with Python functions as toolsView Example
Agent with Structured OutputsGet consistent JSON/structured responsesView Example
Message TransformsManage context with message transformationsView Example

Vision & Multi-Modal

ExampleDescriptionLink
Agents with VisionProcess and analyze imagesView Example
Agent with Multiple ImagesHandle multiple images in one requestView Example

Utilities

ExampleDescriptionLink
Agent with StreamingStream responses in real-timeView Example
Agent Output TypesDifferent output formats (str, json, dict, yaml)View Example
Gradio Chat InterfaceBuild chat UIs for your agentsView Example
Agent with Gemini Nano BananaJarvis-style agent exampleView Example
Agent Marketplace PublishingPublish agents to the Swarms marketplaceView Example

LLM Provider Examples

Connect your agents to various language model providers:
ProviderDescriptionLink
OverviewGuide to all supported providersView Guide
OpenAIGPT-4, GPT-4o, GPT-4o-mini integrationView Example
AnthropicClaude models integrationView Example
GroqUltra-fast inference with GroqView Example
CohereCohere Command modelsView Example
DeepSeekDeepSeek models integrationView Example
OllamaLocal models with Ollama (simple & custom wrapper)View Example
OpenRouterAccess multiple providers via OpenRouterView Example
XAIGrok models from xAIView Example
Azure OpenAIEnterprise Azure deploymentView Example
Llama4Meta’s Llama 4 modelsView Example
Custom Base URLConnect to any OpenAI-compatible APIView Example
vLLM Custom WrapperHigh-performance local inference with vLLMView Example

Next Steps

After mastering basic agents, explore: