Spaces:
Sleeping
Sleeping
Fix gpt oss bug
Browse files- certificate_agent.py +2 -2
certificate_agent.py
CHANGED
|
@@ -39,7 +39,7 @@ def tool_call(state: GraphState) -> GraphState:
|
|
| 39 |
result_search = wikipedia.search(json_last_answer['query'])
|
| 40 |
markdown_website = visit_webpage(wikipedia.page(result_search[0]).url)
|
| 41 |
state['history'].append(
|
| 42 |
-
{'role': 'tool', 'content': markdown_website, 'tool_call_id': 'blablabla'}
|
| 43 |
)
|
| 44 |
return state
|
| 45 |
else:
|
|
@@ -104,5 +104,5 @@ print(manager_agent.invoke([
|
|
| 104 |
{'role': 'human', 'content': 'What is the first name of the only Malko Competition recipient from the 20th Century (after 1977) whose nationality on record is a country that no longer exists?'}
|
| 105 |
]))
|
| 106 |
"""
|
| 107 |
-
#print(my_graph.invoke(
|
| 108 |
#print(my_graph.invoke(init_state_5))
|
|
|
|
| 39 |
result_search = wikipedia.search(json_last_answer['query'])
|
| 40 |
markdown_website = visit_webpage(wikipedia.page(result_search[0]).url)
|
| 41 |
state['history'].append(
|
| 42 |
+
{'role': 'tool', 'name': "web_search", 'content': markdown_website, 'tool_call_id': 'blablabla'}
|
| 43 |
)
|
| 44 |
return state
|
| 45 |
else:
|
|
|
|
| 104 |
{'role': 'human', 'content': 'What is the first name of the only Malko Competition recipient from the 20th Century (after 1977) whose nationality on record is a country that no longer exists?'}
|
| 105 |
]))
|
| 106 |
"""
|
| 107 |
+
#print(my_graph.invoke(init_state))
|
| 108 |
#print(my_graph.invoke(init_state_5))
|