Spaces:
Runtime error
Runtime error
Sheshank Joshi
commited on
Commit
·
7e3e394
1
Parent(s):
9fced79
latest model
Browse files
__pycache__/reasoning_agent.cpython-312.pyc
CHANGED
Binary files a/__pycache__/reasoning_agent.cpython-312.pyc and b/__pycache__/reasoning_agent.cpython-312.pyc differ
|
|
reasoning_agent.py
CHANGED
@@ -227,9 +227,7 @@ def generate_response(state: AgentState) -> AgentState:
|
|
227 |
|
228 |
# Create prompt for response generation
|
229 |
response_prompt = ChatPromptTemplate.from_messages([
|
230 |
-
SystemMessage(content="""Generate a helpful response to the user based on your reasoning and tool outputs.
|
231 |
-
Be thorough but concise. Focus on directly answering the user's request.
|
232 |
-
If tools provided relevant information, incorporate it into your response."""),
|
233 |
("user",
|
234 |
"User request: {user_request}\n\nReasoning: {reasoning}\n\nTool outputs: {tool_outputs}")
|
235 |
])
|
|
|
227 |
|
228 |
# Create prompt for response generation
|
229 |
response_prompt = ChatPromptTemplate.from_messages([
|
230 |
+
SystemMessage(content="""Generate a helpful response to the user based on your reasoning and tool outputs. Give exact, to the point and concise one word or number as an answer. No explanation is needed at all. Make sure that if numerical number is asked, you return only a number and nothing else. If you don't know the answer, make a guess from your training data, but don't return None."""),
|
|
|
|
|
231 |
("user",
|
232 |
"User request: {user_request}\n\nReasoning: {reasoning}\n\nTool outputs: {tool_outputs}")
|
233 |
])
|