from praisonaiagents import Agentagent = Agent( instructions="You are a helpful assistant", llm="llama-3.1-8b-instant",)agent.start("Why sky is Blue?")
2. Litellm Compatible model names (eg: gemini/gemini-1.5-flash-8b)
pip install "praisonaiagents[llm]"
from praisonaiagents import Agentagent = Agent( instructions="You are a helpful assistant", llm="gemini/gemini-1.5-flash-8b", reflection=True,)agent.start("Why sky is Blue?")
# if json_object is supported by the modelfrom praisonaiagents import Agentagent = Agent( instructions="You are a helpful assistant", llm="gemini/gemini-1.5-flash-8b", reflection=True,)agent.start("Why sky is Blue?")
framework: crewaitopic: research about the causes of lung diseaseagents: # Canonical: use 'agents' instead of 'roles' research_analyst: instructions: # Canonical: use 'instructions' instead of 'backstory' Experienced in analyzing scientific data related to respiratory health. goal: Analyze data on lung diseases role: Research Analyst llm: model: "groq/llama3-70b-8192" function_calling_llm: model: "google/gemini-1.5-flash-001" tasks: data_analysis: description: Gather and analyze data on the causes and risk factors of lung diseases. expected_output: Report detailing key findings on lung disease causes. tools: - 'InternetSearchTool' medical_writer: instructions: # Canonical: use 'instructions' instead of 'backstory' Skilled in translating complex medical information into accessible content. goal: Compile comprehensive content on lung disease causes role: Medical Writer llm: model: "anthropic/claude-3-haiku-20240307" function_calling_llm: model: "openai/gpt-4o" tasks: content_creation: description: Create detailed content summarizing the research findings on lung disease causes. expected_output: Document outlining various causes and risk factors of lung diseases. tools: - '' editor: instructions: # Canonical: use 'instructions' instead of 'backstory' Proficient in editing medical content for accuracy and clarity. goal: Review and refine content on lung disease causes role: Editor llm: model: "cohere/command-r" tasks: content_review: description: Edit and refine the compiled content on lung disease causes for accuracy and coherence. expected_output: Finalized document on lung disease causes ready for dissemination. tools: - ''dependencies: []