Examples¶
This section contains practical examples demonstrating various features and patterns in LLMling-Agent.
Agent Patterns¶
Create Docs¶
Agent collaboration for documentation generation - demonstrates how multiple agents can work together to create structured documentation.
CrewAI-Style Flow¶
Adaptation of CrewAI-like workflow patterns - shows how to implement familiar workflow patterns from other frameworks.
PyTest-Style Functions¶
PyTest-style example patterns - demonstrates testing patterns and function-based agent definitions.
Multi-Agent Communication¶
Round-Robin Communication¶
Round-robin message passing between agents - shows how to implement circular communication patterns.
Expert Selection¶
Using pick() for expert selection - demonstrates dynamic agent selection based on expertise.
Downloads & Workers¶
Download Agents¶
Sequential vs parallel downloads comparison - compares different approaches to handling multiple download tasks.
Download Workers¶
Using agents as tools for downloads - shows how to use one agent as a tool for another.
MCP Integration¶
MCP Servers (YAML)¶
MCP server integration with git tools - demonstrates how to integrate MCP servers via YAML configuration.
MCP Sampling & Elicitation¶
MCP server with sampling tools - shows advanced MCP features including sampling and elicitation.
Structured Responses¶
Structured Responses¶
Structured response type examples - demonstrates how to define and use typed response models.
Human Interaction¶
Human Interaction¶
AI-Human interaction patterns - shows how to implement human-in-the-loop workflows.
Model Comparison¶
Model Comparison¶
Comparing different models using parallel teams - demonstrates how to run the same task across multiple models simultaneously.
Getting Started¶
Each example includes:
- Configuration files: YAML configurations showing agent setup
- Code examples: Python code demonstrating usage patterns
- Explanations: Detailed descriptions of concepts and approaches
You can find the full source code for these examples in the GitHub repository.