dlflannery commited on
Commit
f720f9e
·
verified ·
1 Parent(s): a1d8df9

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +21 -3
README.md CHANGED
@@ -1,3 +1,21 @@
1
- ---
2
- license: mit
3
- ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: mit
3
+ ---
4
+ This agent was used with a duplicated space of the first_agent_template space provided with the
5
+ HuggingFace Agents (smolagents) course:
6
+ https://huggingface.co/spaces/agents-course/First_agent_template/tree/main
7
+ It uses Yahoo Finance to get five news items (title, date, publisher, url) for
8
+ a specified stock and the latest closing value.
9
+
10
+ The agent is defined in file get_stock_news.py and would normally be placed in the tools subfolder.
11
+
12
+ In the main script (e.g., app.py) you would include the following:
13
+
14
+ from tools.get_stock_news import StockNewsTool
15
+
16
+ stock_news_items = StockNewsTool()
17
+
18
+ agent = CodeAgent(
19
+ model=model,
20
+ tools=[final_answer, stock_news_items], ## add your tools here (don't remove final answer)
21
+ (etc.)