Didrik Nathaniel LLoyd Aasland Skjelbred commited on
Commit
58503d6
·
1 Parent(s): 45940e0
Files changed (2) hide show
  1. agent.py +3 -2
  2. app_log.txt +0 -58
agent.py CHANGED
@@ -719,9 +719,11 @@ def build_graph():
719
  If you are asked for a string, don't use articles, neither abbreviations (e.g. for cities), and write the digits in plain text unless specified otherwise.
720
  If you are asked for a comma separated list, apply the above rules depending of whether the element to be put in the list is a number or a string.
721
 
722
- You must check your available tools to see if any can provide more information.
723
  you can for exsample use:
724
  `Search_wikipedia` to search on wikipedia
 
 
725
 
726
  """
727
 
@@ -736,7 +738,6 @@ def build_graph():
736
  return ai_agent
737
 
738
 
739
-
740
  # if __name__ == "__main__":
741
 
742
  # graph = build_graph(provider="openAi")
 
719
  If you are asked for a string, don't use articles, neither abbreviations (e.g. for cities), and write the digits in plain text unless specified otherwise.
720
  If you are asked for a comma separated list, apply the above rules depending of whether the element to be put in the list is a number or a string.
721
 
722
+ You must use any tools that can provide more information for you to provide the correct final answer..
723
  you can for exsample use:
724
  `Search_wikipedia` to search on wikipedia
725
+ `transcribe_audio` to transcribe audio.
726
+ and so on.
727
 
728
  """
729
 
 
738
  return ai_agent
739
 
740
 
 
741
  # if __name__ == "__main__":
742
 
743
  # graph = build_graph(provider="openAi")
app_log.txt CHANGED
@@ -1,58 +0,0 @@
1
- 2025-06-30 00:04:27 INFO
2
- DEBUG: [__call__] Question: Who nominated the only Featured Article on English Wikipedia about a dinosaur that was promoted in November 2016?, file_name:
3
- 2025-06-30 00:04:27 INFO
4
- DEBUG: file path is empty:
5
- 2025-06-30 00:04:27 INFO
6
- DEBUG: messages before invoke: [HumanMessage(content='Who nominated the only Featured Article on English Wikipedia about a dinosaur that was promoted in November 2016?', additional_kwargs={}, response_metadata={})]
7
- 2025-06-30 00:04:28 INFO HTTP Request: POST https://api.openai.com/v1/chat/completions "HTTP/1.1 200 OK"
8
- 2025-06-30 00:04:32 INFO HTTP Request: POST https://api.openai.com/v1/chat/completions "HTTP/1.1 200 OK"
9
- 2025-06-30 00:04:34 INFO response: https://lite.duckduckgo.com/lite/ 200
10
- 2025-06-30 00:04:37 INFO HTTP Request: POST https://api.openai.com/v1/chat/completions "HTTP/1.1 200 OK"
11
- 2025-06-30 00:04:38 INFO response: https://html.duckduckgo.com/html 200
12
- 2025-06-30 00:04:39 INFO HTTP Request: POST https://api.openai.com/v1/chat/completions "HTTP/1.1 200 OK"
13
- 2025-06-30 00:04:39 INFO
14
- DEBUG: result is a dictionary.
15
- 2025-06-30 00:04:39 INFO
16
- DEBUG: result contains 'messages' key.
17
- 2025-06-30 00:04:39 INFO Raw answer: I couldn't find the specific information about who nominated the only Featured Article on English Wikipedia about a dinosaur that was promoted in November 2016. You might want to check the Wikipedia page history or the talk page of the specific article for more details.
18
-
19
- FINAL ANSWER: Unknown
20
- 2025-06-30 00:04:39 INFO
21
- DEBUG: 'FINAL ANSWER:' found in response.
22
- 2025-06-30 00:04:39 INFO Returning final answer: (Unknown)
23
-
24
- 2025-06-30 00:07:43 INFO
25
- DEBUG: [__call__] Question: Who nominated the only Featured Article on English Wikipedia about a dinosaur that was promoted in November 2016?, file_name:
26
- 2025-06-30 00:07:43 INFO
27
- DEBUG: file path is empty:
28
- 2025-06-30 00:07:43 INFO
29
- DEBUG: messages before invoke: [HumanMessage(content='Who nominated the only Featured Article on English Wikipedia about a dinosaur that was promoted in November 2016?', additional_kwargs={}, response_metadata={})]
30
- 2025-06-30 00:07:43 INFO HTTP Request: POST https://api.openai.com/v1/chat/completions "HTTP/1.1 200 OK"
31
- 2025-06-30 00:07:43 INFO
32
- DEBUG: result is a dictionary.
33
- 2025-06-30 00:07:43 INFO
34
- DEBUG: result contains 'messages' key.
35
- 2025-06-30 00:07:43 INFO Raw answer: What is the capital of France?
36
- 2025-06-30 00:07:43 INFO Returning final answer: (What is the capital of France?)
37
-
38
- 2025-06-30 00:19:41 INFO
39
- DEBUG: [__call__] Question: Who nominated the only Featured Article on English Wikipedia about a dinosaur that was promoted in November 2016?, file_name:
40
- 2025-06-30 00:19:41 INFO
41
- DEBUG: file path is empty:
42
- 2025-06-30 00:19:41 INFO
43
- DEBUG: messages before invoke: [HumanMessage(content='Who nominated the only Featured Article on English Wikipedia about a dinosaur that was promoted in November 2016?', additional_kwargs={}, response_metadata={})]
44
- 2025-06-30 00:19:42 INFO HTTP Request: POST https://api.openai.com/v1/chat/completions "HTTP/1.1 200 OK"
45
- 2025-06-30 00:19:43 INFO HTTP Request: POST https://api.openai.com/v1/chat/completions "HTTP/1.1 200 OK"
46
- 2025-06-30 00:19:44 INFO HTTP Request: POST https://api.openai.com/v1/chat/completions "HTTP/1.1 200 OK"
47
- 2025-06-30 00:19:45 INFO HTTP Request: POST https://api.openai.com/v1/chat/completions "HTTP/1.1 200 OK"
48
- 2025-06-30 00:19:45 INFO
49
- DEBUG: result is a dictionary.
50
- 2025-06-30 00:19:45 INFO
51
- DEBUG: result contains 'messages' key.
52
- 2025-06-30 00:19:45 INFO Raw answer: It seems I'm unable to perform a web search at the moment. However, you can find this information by visiting the Wikipedia page for Featured Articles and checking the history or talk page for the dinosaur article promoted in November 2016. The nomination details, including the nominator, are usually documented there.
53
-
54
- If you have any other questions or need further assistance, feel free to ask!
55
- 2025-06-30 00:19:45 INFO Returning final answer: (It seems I'm unable to perform a web search at the moment. However, you can find this information by visiting the Wikipedia page for Featured Articles and checking the history or talk page for the dinosaur article promoted in November 2016. The nomination details, including the nominator, are usually documented there.
56
-
57
- If you have any other questions or need further assistance, feel free to ask!)
58
-