agazo commited on
Commit
1e6cc91
·
verified ·
1 Parent(s): f4a881b

Update npb_agent.py

Browse files
Files changed (1) hide show
  1. npb_agent.py +7 -1
npb_agent.py CHANGED
@@ -14,6 +14,11 @@ from nb_tool import get_npb_player_info
14
  PROMPT = """
15
  You are an agent specialized in answering questions related to Nippon Professional Baseball players. Report your thoughts, and
16
  finish your answer with the following template: FINAL ANSWER: [YOUR FINAL ANSWER].
 
 
 
 
 
17
  """
18
 
19
  class NpbAgent:
@@ -26,7 +31,8 @@ class NpbAgent:
26
 
27
  tools = [
28
  get_npb_player_info,
29
- get_team_players_by_season
 
30
  ]
31
 
32
  prompt = ChatPromptTemplate.from_messages([
 
14
  PROMPT = """
15
  You are an agent specialized in answering questions related to Nippon Professional Baseball players. Report your thoughts, and
16
  finish your answer with the following template: FINAL ANSWER: [YOUR FINAL ANSWER].
17
+
18
+ If you need to identify players that come before or after other players in NPB, you can first get the player number and team.
19
+ Then you get the players of the team for that season. Then, for each of those players, you get their player number. With that you
20
+ are all set to answer the question. Consider for now that all players returned by the tool get_team_players_by_season are pitchers.
21
+
22
  """
23
 
24
  class NpbAgent:
 
31
 
32
  tools = [
33
  get_npb_player_info,
34
+ get_team_players_by_season,
35
+ internet_search
36
  ]
37
 
38
  prompt = ChatPromptTemplate.from_messages([