alfulanny commited on
Commit
10205df
·
verified ·
1 Parent(s): f619bc4

Update code_agent.py

Browse files
Files changed (1) hide show
  1. code_agent.py +2 -1
code_agent.py CHANGED
@@ -3,6 +3,7 @@ Real `smolagents` CodeAgent integration for the final project.
3
 
4
  This module initializes a `CodeAgent` with standard tools and exposes a
5
  `run_agent(prompt)` function returning the final answer string.
 
6
 
7
 
8
  from typing import List, Any
@@ -108,7 +109,7 @@ def run_agent(prompt: str) -> str:
108
  prompt: the reasoning task/question for the agent.
109
 
110
  Returns:
111
- The agent final answer as a string.
112
 
113
  Raises:
114
  Exception: if CodeAgent.run fails (e.g., no HF credentials or credits).
 
3
 
4
  This module initializes a `CodeAgent` with standard tools and exposes a
5
  `run_agent(prompt)` function returning the final answer string.
6
+ """
7
 
8
 
9
  from typing import List, Any
 
109
  prompt: the reasoning task/question for the agent.
110
 
111
  Returns:
112
+ The agent's final answer as a string.
113
 
114
  Raises:
115
  Exception: if CodeAgent.run fails (e.g., no HF credentials or credits).