petrov826 commited on
Commit
a1ca60d
·
verified ·
1 Parent(s): 675cf58

remove planing_interval again add instructions

Browse files
Files changed (1) hide show
  1. app.py +12 -1
app.py CHANGED
@@ -20,6 +20,17 @@ from youtube_transcript_tool import YoutubeTranscriptTool
20
  # (Keep Constants as is)
21
  # --- Constants ---
22
  DEFAULT_API_URL = "https://agents-course-unit4-scoring.hf.space"
 
 
 
 
 
 
 
 
 
 
 
23
 
24
  rate_limiter = RateLimiter()
25
 
@@ -41,7 +52,7 @@ class BasicAgent:
41
  ],
42
  model=model,
43
  step_callbacks=[rate_limiter.increment_and_sleep_if_needed],
44
- planning_interval=3,
45
  )
46
  print("BasicAgent initialized.")
47
 
 
20
  # (Keep Constants as is)
21
  # --- Constants ---
22
  DEFAULT_API_URL = "https://agents-course-unit4-scoring.hf.space"
23
+ CUSTOM_PROMPT = """
24
+ You are a general AI assistant. I will ask you a question.
25
+ Your final response must be ONLY the answer itself and nothing else.
26
+ Do not include any explanations, reasoning, or prefixes like "FINAL ANSWER:".
27
+
28
+ The answer should be a number OR as few words as possible OR a comma separated list.
29
+ - If the answer is a number, do not use commas for thousands separators
30
+ (e.g., write 1000 not 1,000) and do not include units like '$' or '%' unless specified.
31
+ - If the answer is a string, do not use articles (a, an, the) or abbreviations.
32
+ - If the answer is a list, apply these rules to each element.
33
+ """
34
 
35
  rate_limiter = RateLimiter()
36
 
 
52
  ],
53
  model=model,
54
  step_callbacks=[rate_limiter.increment_and_sleep_if_needed],
55
+ instructions=CUSTOM_PROMPT,
56
  )
57
  print("BasicAgent initialized.")
58