This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| """ | |
| Example: Workflow with Conversational Intake and Background Research | |
| This demonstrates a Workflow where: | |
| 1. An intake agent step has a conversation with the user | |
| 2. Once the user's name is captured, background research kicks off | |
| 3. The research results are stored in the workflow's shared session_state | |
| 4. Subsequent workflow steps/turns can access the research | |
| Run with: python libs/agno/agno/test.py |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # paper2saas_agent.py | |
| import argparse | |
| import os | |
| import json | |
| from typing import Dict, Any, List | |
| from pydantic import BaseModel, Field | |
| # Agno SDK Imports | |
| from agno.workflow import Workflow, Step, Parallel |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from typing import List | |
| from agno.agent.agent import Agent | |
| from agno.models.openai import OpenAIChat | |
| from agno.workflow.router import Router | |
| from agno.workflow.step import Step | |
| from agno.workflow.types import StepInput, StepOutput | |
| from agno.workflow.workflow import Workflow | |
| # Define your agents/steps |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from typing import List | |
| from agno.agent.agent import Agent | |
| from agno.models.openai import OpenAIChat | |
| from agno.workflow.router import Router | |
| from agno.workflow.step import Step | |
| from agno.workflow.types import StepInput | |
| from agno.workflow.workflow import Workflow | |
| # Define your agents/steps |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import asyncio | |
| from agno.agent import Agent | |
| from agno.models.openai import OpenAIChat | |
| from pydantic import BaseModel, Field | |
| from rich.pretty import pprint | |
| class PersonInfo(BaseModel): | |
| name: str = Field(..., description="Person's full name") |
This file has been truncated, but you can view the full file.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [ | |
| { | |
| "input": "ai trends in 2025", | |
| "content": "# Predicting AI Trends for 2025\n\nAs technology rapidly evolves, anticipating trends in artificial intelligence (AI) becomes crucial for understanding future impacts across various sectors. Based on current directions and societal needs, several key AI trends are expected to shape the landscape by 2025:\n\n## 1. AI in Healthcare\n- **Advanced Diagnostics**: AI will further enhance diagnostic accuracy and speed, aiding in early detection of diseases.\n- **Personalized Treatment**: AI tools will enable tailored treatment plans, improving outcomes for individual patients.\n- **Predictive Analytics**: Effective in anticipating health issues, potentially reducing emergencies.\n- **Innovations in Drug Discovery**: AI can accelerate the development of new medications.\n- **Telemedicine**: AI will power more efficient and responsive remote care.\n\n## 2. AI Ethics and Regulation\n- **Data Privacy**: Stricter regulations around data use and protection will emerg |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import asyncio | |
| from dataclasses import dataclass | |
| from datetime import datetime | |
| from os import getenv | |
| from typing import ( | |
| Any, | |
| AsyncIterator, | |
| Awaitable, | |
| Callable, | |
| Dict, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [ | |
| { | |
| "input": "Tell me a story about a husky named Max.", | |
| "content": "**Prelogue:** \nIn a serene winter landscape, where the forest is blanketed by soft, white snow, we meet Max, a lively husky with a shimmering coat and an adventurous spirit. The setting introduces the mood of a sparkling winter day, hinting at the adventures that await Max.\n\n**Body:** \nMax explores the snow-covered forest, leaving behind paw prints that echo his playful nature. His curiosity leads him to a frozen pond, which captures his attention with its glass-like surface. Driven by the thrill of adventure, he ventures onto the ice, but his excitement leads to a slip, and he tumbles into the cold water. The chilling shock is soon met with laughter from a girl who witnesses his playful misfortune. This moment of shared joy sparks a connection between them, resulting in a budding friendship amidst the enchanting snowfall.\n\n**Epilogue:** \nAs winter continues to blanket the forest, Max and the girl nurture their newfound b |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [ | |
| { | |
| "input": "Tell me a story about a husky named Max.", | |
| "content": "**Prelogue:**\nIn the picturesque landscape of Pine Ridge, where the snowflakes danced like little fairies, lived a spirited husky named Max. Known for his playful antics and love for adventure, Max's days were filled with excitement, exploring the snowy trails and seeking out new experiences. \n\n**Body:**\nOne crisp, sun-kissed morning, while bounding through the glistening snow, Max's keen eyes caught sight of a vibrant scarf fluttering enticingly from a high branch of a tree. His innate curiosity sparked, and with a joyful bark, he sprinted towards the eye-catching object. On his way, he stumbled upon a group of cheerful children, happily engaged in constructing a snowman. \n\nWithout a second thought, Max decided to enhance their fun by snatching up the scarf. With his tail wagging in delight, he dashed back towards the children, proudly flaunting his find. The children erupted into laughter, their spirits lifted by Max’s play |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from agno.agent import Agent | |
| from agno.db.in_memory import InMemoryDb | |
| from agno.db.sqlite import SqliteDb | |
| from agno.models.openai import OpenAIChat | |
| from agno.os import AgentOS | |
| from agno.team import Team | |
| from agno.tools.duckduckgo import DuckDuckGoTools | |
| from agno.tools.googlesearch import GoogleSearchTools | |
| from agno.tools.hackernews import HackerNewsTools | |
| from agno.workflow.step import Step, StepInput, StepOutput |
NewerOlder