Update LG_agent.py
Browse files- LG_agent.py +1 -0
LG_agent.py
CHANGED
@@ -71,6 +71,7 @@ def assistant(state: AgentState):
|
|
71 |
"Do not assume the existence of files or media unless they are explicitly mentioned. Do not call tools like transcription unless an actual file or media reference is present.\n"
|
72 |
"After every tool call, always analyze the result and continue reasoning to arrive at a final answer.\n"
|
73 |
"Never treat tool outputs as final — interpret them and continue solving the task step-by-step.\n"
|
|
|
74 |
"Finish with a clear and concise answer, such as 'The answer is: right'.\n"
|
75 |
"\nAvailable tools:\n"
|
76 |
f"{tool_descriptions}"
|
|
|
71 |
"Do not assume the existence of files or media unless they are explicitly mentioned. Do not call tools like transcription unless an actual file or media reference is present.\n"
|
72 |
"After every tool call, always analyze the result and continue reasoning to arrive at a final answer.\n"
|
73 |
"Never treat tool outputs as final — interpret them and continue solving the task step-by-step.\n"
|
74 |
+
"When the question specifies an answer format (e.g., a number, list, or code), respond **only with the final answer** in the required format. Do not add explanations, quotes, or set notation. Output exactly what is requested.\n"
|
75 |
"Finish with a clear and concise answer, such as 'The answer is: right'.\n"
|
76 |
"\nAvailable tools:\n"
|
77 |
f"{tool_descriptions}"
|