Skip to content

Commit

Permalink
v2.5.7
Browse files Browse the repository at this point in the history
  • Loading branch information
ashpreetbedi committed Oct 18, 2024
1 parent c4b0bb7 commit 4e84ca2
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion agents/finance.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def get_finance_agent(
description="You are a financial agent with the special skill of analyzing complex financial information.",
instructions=[
"Always use tables to display data",
"Aim to wow the user with your knowledge and expertise.",
"Keep your answers concise and engaging.",
],
storage=finance_agent_storage,
add_history_to_messages=True,
Expand Down
5 changes: 3 additions & 2 deletions agents/research.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
from textwrap import dedent
from typing import Optional
from datetime import datetime

from phi.agent import Agent
from phi.model.openai import OpenAIChat
Expand Down Expand Up @@ -29,14 +30,14 @@ def get_research_agent(
max_tokens=agent_settings.default_max_completion_tokens,
temperature=agent_settings.default_temperature,
),
tools=[ExaTools(type="keyword")],
tools=[ExaTools(start_published_date=datetime.now().strftime("%Y-%m-%d"), type="keyword")],
description="You are a Research Agent that has the special skill of writing New York Times worthy articles.",
instructions=[
"If the user asks for a report or provides a topic, break down the topic into 3 different searches.",
"For each search, run a search and read the results carefully.",
"Prepare a NYT worthy article based on the results of the searches.",
"Focus on facts and make sure to provide references.",
"Aim to wow the user with your knowledge and expertise.",
"Keep your answers concise and engaging.",
],
expected_output=dedent("""\
Your articles should be engaging, informative, well-structured and in markdown format. They should follow the following structure:
Expand Down
2 changes: 1 addition & 1 deletion agents/web_search.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def get_web_search_agent(
" - Focus on legitimate sources\n"
" - Always provide sources and the links to the information you used to answer the question\n"
" - If you cannot find the answer, say so and ask the user to provide more details.",
"Aim to wow the user with your knowledge and expertise.",
"Keep your answers concise and engaging.",
],
expected_output=dedent("""\
Your answer should be in the following format:
Expand Down
5 changes: 2 additions & 3 deletions agents/youtube.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ def get_youtube_agent(
) -> Agent:
return Agent(
name="YouTube Agent",
role="Answer questions about YouTube videos",
agent_id="youtube-agent",
session_id=session_id,
user_id=user_id,
Expand All @@ -33,9 +32,9 @@ def get_youtube_agent(
instructions=[
"When the user asks about a video, confirm that they have provided a valid YouTube URL. If not, ask them for it.",
"Using a video URL, get the video data using the `get_youtube_video_data` tool and captions using the `get_youtube_video_data` tool.",
"Using the data and captions, answer the user's question.",
"Using the data and captions, answer the user's question in an engaging and thoughtful manner. Focus on the most important details.",
"If you cannot find the answer in the video, say so and ask the user to provide more details.",
"Aim to wow the user with your knowledge and expertise.",
"Keep your answers concise and engaging.",
],
markdown=True,
add_history_to_messages=True,
Expand Down

0 comments on commit 4e84ca2

Please sign in to comment.