Created
January 2, 2025 21:27
-
-
Save thoraxe/4f83d54cd78d766e5f4d9978d9518066 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
python main.py | |
----START---- | |
INFO:autogen_core:Sending message of type GroupChatStart to group_chat_manager: {'message': TextMessage(source='user', models_usage=None, content='What pods are in the namespace openshift-lightspeed?', type='TextMessage')} | |
INFO:autogen_core:Calling message handler for group_chat_manager/59a8b872-f3ae-4bef-b591-dbf0ce08f46d with message type GroupChatStart sent by Unknown | |
INFO:autogen_core:Publishing message of type GroupChatStart to all subscribers: {'message': TextMessage(source='user', models_usage=None, content='What pods are in the namespace openshift-lightspeed?', type='TextMessage')} | |
INFO:autogen_core:Publishing message of type GroupChatStart to all subscribers: {'message': TextMessage(source='user', models_usage=None, content='What pods are in the namespace openshift-lightspeed?', type='TextMessage')} | |
INFO:autogen_core:Calling message handler for collect_output_messages with message type GroupChatStart published by group_chat_manager/59a8b872-f3ae-4bef-b591-dbf0ce08f46d | |
INFO:autogen_agentchat.events:source='user' models_usage=None content='What pods are in the namespace openshift-lightspeed?' type='TextMessage' | |
INFO:autogen_core:Calling message handler for routing_agent with message type GroupChatStart published by group_chat_manager/59a8b872-f3ae-4bef-b591-dbf0ce08f46d | |
INFO:autogen_core:Calling message handler for retrieval_agent with message type GroupChatStart published by group_chat_manager/59a8b872-f3ae-4bef-b591-dbf0ce08f46d | |
INFO:autogen_core:Calling message handler for knowledge_agent with message type GroupChatStart published by group_chat_manager/59a8b872-f3ae-4bef-b591-dbf0ce08f46d | |
INFO:autogen_core:Publishing message of type GroupChatRequestPublish to all subscribers: {} | |
INFO:autogen_core:Calling message handler for routing_agent with message type GroupChatRequestPublish published by group_chat_manager/59a8b872-f3ae-4bef-b591-dbf0ce08f46d | |
INFO:autogen_core:Resolving response with message type NoneType for recipient None from group_chat_manager: None | |
---------- user ---------- | |
What pods are in the namespace openshift-lightspeed? | |
INFO:httpx:HTTP Request: POST https://ols-test.openai.azure.com/openai/deployments/gpt-4o-mini/chat/completions?api-version=2024-02-01 "HTTP/1.1 200 OK" | |
INFO:autogen_core.events:{"prompt_tokens": 164, "completion_tokens": 14, "type": "LLMCall"} | |
INFO:autogen_core:Publishing message of type GroupChatMessage to all subscribers: {'message': ToolCallMessage(source='routing_agent', models_usage=RequestUsage(prompt_tokens=164, completion_tokens=14), content=[FunctionCall(id='call_4vYEG8LDrYAl04YsZXE9M7NN', arguments='{}', name='transfer_to_retrieval_agent')], type='ToolCallMessage')} | |
INFO:autogen_core:Calling message handler for collect_output_messages with message type GroupChatMessage published by routing_agent/59a8b872-f3ae-4bef-b591-dbf0ce08f46d | |
INFO:autogen_agentchat.events:source='routing_agent' models_usage=RequestUsage(prompt_tokens=164, completion_tokens=14) content=[FunctionCall(id='call_4vYEG8LDrYAl04YsZXE9M7NN', arguments='{}', name='transfer_to_retrieval_agent')] type='ToolCallMessage' | |
---------- routing_agent ---------- | |
[FunctionCall(id='call_4vYEG8LDrYAl04YsZXE9M7NN', arguments='{}', name='transfer_to_retrieval_agent')] | |
[Prompt tokens: 164, Completion tokens: 14] | |
INFO:autogen_core:Publishing message of type GroupChatMessage to all subscribers: {'message': ToolCallResultMessage(source='routing_agent', models_usage=None, content=[FunctionExecutionResult(content='Transferred to retrieval_agent, adopting the role of retrieval_agent immediately.', call_id='call_4vYEG8LDrYAl04YsZXE9M7NN')], type='ToolCallResultMessage')} | |
INFO:autogen_core:Publishing message of type GroupChatMessage to all subscribers: {'message': HandoffMessage(source='routing_agent', models_usage=None, target='retrieval_agent', content='Transferred to retrieval_agent, adopting the role of retrieval_agent immediately.', type='HandoffMessage')} | |
INFO:autogen_core:Publishing message of type GroupChatAgentResponse to all subscribers: {'agent_response': Response(chat_message=HandoffMessage(source='routing_agent', models_usage=None, target='retrieval_agent', content='Transferred to retrieval_agent, adopting the role of retrieval_agent immediately.', type='HandoffMessage'), inner_messages=[ToolCallMessage(source='routing_agent', models_usage=RequestUsage(prompt_tokens=164, completion_tokens=14), content=[FunctionCall(id='call_4vYEG8LDrYAl04YsZXE9M7NN', arguments='{}', name='transfer_to_retrieval_agent')], type='ToolCallMessage'), ToolCallResultMessage(source='routing_agent', models_usage=None, content=[FunctionExecutionResult(content='Transferred to retrieval_agent, adopting the role of retrieval_agent immediately.', call_id='call_4vYEG8LDrYAl04YsZXE9M7NN')], type='ToolCallResultMessage')])} | |
INFO:autogen_core:Calling message handler for collect_output_messages with message type GroupChatMessage published by routing_agent/59a8b872-f3ae-4bef-b591-dbf0ce08f46d | |
INFO:autogen_agentchat.events:source='routing_agent' models_usage=None content=[FunctionExecutionResult(content='Transferred to retrieval_agent, adopting the role of retrieval_agent immediately.', call_id='call_4vYEG8LDrYAl04YsZXE9M7NN')] type='ToolCallResultMessage' | |
INFO:autogen_core:Calling message handler for collect_output_messages with message type GroupChatMessage published by routing_agent/59a8b872-f3ae-4bef-b591-dbf0ce08f46d | |
INFO:autogen_agentchat.events:source='routing_agent' models_usage=None target='retrieval_agent' content='Transferred to retrieval_agent, adopting the role of retrieval_agent immediately.' type='HandoffMessage' | |
INFO:autogen_core:Calling message handler for retrieval_agent with message type GroupChatAgentResponse published by routing_agent/59a8b872-f3ae-4bef-b591-dbf0ce08f46d | |
INFO:autogen_core:Calling message handler for knowledge_agent with message type GroupChatAgentResponse published by routing_agent/59a8b872-f3ae-4bef-b591-dbf0ce08f46d | |
INFO:autogen_core:Calling message handler for group_chat_manager with message type GroupChatAgentResponse published by routing_agent/59a8b872-f3ae-4bef-b591-dbf0ce08f46d | |
---------- routing_agent ---------- | |
[FunctionExecutionResult(content='Transferred to retrieval_agent, adopting the role of retrieval_agent immediately.', call_id='call_4vYEG8LDrYAl04YsZXE9M7NN')] | |
---------- routing_agent ---------- | |
Transferred to retrieval_agent, adopting the role of retrieval_agent immediately. | |
INFO:autogen_core:Publishing message of type GroupChatRequestPublish to all subscribers: {} | |
INFO:autogen_core:Calling message handler for retrieval_agent with message type GroupChatRequestPublish published by group_chat_manager/59a8b872-f3ae-4bef-b591-dbf0ce08f46d | |
INFO:httpx:HTTP Request: POST https://ols-test.openai.azure.com/openai/deployments/gpt-4o-mini/chat/completions?api-version=2024-02-01 "HTTP/1.1 200 OK" | |
INFO:autogen_core.events:{"prompt_tokens": 282, "completion_tokens": 20, "type": "LLMCall"} | |
INFO:autogen_core:Publishing message of type GroupChatMessage to all subscribers: {'message': ToolCallMessage(source='retrieval_agent', models_usage=RequestUsage(prompt_tokens=282, completion_tokens=20), content=[FunctionCall(id='call_bjoaSd1nS0DrpCHfvhu8tFm9', arguments='{"namespace":"openshift-lightspeed"}', name='get_pod_list')], type='ToolCallMessage')} | |
INFO:autogen_core:Calling message handler for collect_output_messages with message type GroupChatMessage published by retrieval_agent/59a8b872-f3ae-4bef-b591-dbf0ce08f46d | |
INFO:autogen_agentchat.events:source='retrieval_agent' models_usage=RequestUsage(prompt_tokens=282, completion_tokens=20) content=[FunctionCall(id='call_bjoaSd1nS0DrpCHfvhu8tFm9', arguments='{"namespace":"openshift-lightspeed"}', name='get_pod_list')] type='ToolCallMessage' | |
INFO:autogen_core:Publishing message of type GroupChatMessage to all subscribers: {'message': ToolCallResultMessage(source='retrieval_agent', models_usage=None, content=[FunctionExecutionResult(content="b'pod/lightspeed-app-server-76dc755b78-cndqk\\npod/lightspeed-console-plugin-859868bbf8-lmc5t\\npod/lightspeed-operator-controller-manager-59b95c5c8f-n92g4\\n'", call_id='call_bjoaSd1nS0DrpCHfvhu8tFm9')], type='ToolCallResultMessage')} | |
INFO:autogen_core:Publishing message of type GroupChatMessage to all subscribers: {'message': TextMessage(source='retrieval_agent', models_usage=None, content="b'pod/lightspeed-app-server-76dc755b78-cndqk\\npod/lightspeed-console-plugin-859868bbf8-lmc5t\\npod/lightspeed-operator-controller-manager-59b95c5c8f-n92g4\\n'", type='TextMessage')} | |
INFO:autogen_core:Publishing message of type GroupChatAgentResponse to all subscribers: {'agent_response': Response(chat_message=TextMessage(source='retrieval_agent', models_usage=None, content="b'pod/lightspeed-app-server-76dc755b78-cndqk\\npod/lightspeed-console-plugin-859868bbf8-lmc5t\\npod/lightspeed-operator-controller-manager-59b95c5c8f-n92g4\\n'", type='TextMessage'), inner_messages=[ToolCallMessage(source='retrieval_agent', models_usage=RequestUsage(prompt_tokens=282, completion_tokens=20), content=[FunctionCall(id='call_bjoaSd1nS0DrpCHfvhu8tFm9', arguments='{"namespace":"openshift-lightspeed"}', name='get_pod_list')], type='ToolCallMessage'), ToolCallResultMessage(source='retrieval_agent', models_usage=None, content=[FunctionExecutionResult(content="b'pod/lightspeed-app-server-76dc755b78-cndqk\\npod/lightspeed-console-plugin-859868bbf8-lmc5t\\npod/lightspeed-operator-controller-manager-59b95c5c8f-n92g4\\n'", call_id='call_bjoaSd1nS0DrpCHfvhu8tFm9')], type='ToolCallResultMessage')])} | |
---------- retrieval_agent ---------- | |
[FunctionCall(id='call_bjoaSd1nS0DrpCHfvhu8tFm9', arguments='{"namespace":"openshift-lightspeed"}', name='get_pod_list')] | |
[Prompt tokens: 282, Completion tokens: 20] | |
INFO:autogen_core:Calling message handler for collect_output_messages with message type GroupChatMessage published by retrieval_agent/59a8b872-f3ae-4bef-b591-dbf0ce08f46d | |
INFO:autogen_agentchat.events:source='retrieval_agent' models_usage=None content=[FunctionExecutionResult(content="b'pod/lightspeed-app-server-76dc755b78-cndqk\\npod/lightspeed-console-plugin-859868bbf8-lmc5t\\npod/lightspeed-operator-controller-manager-59b95c5c8f-n92g4\\n'", call_id='call_bjoaSd1nS0DrpCHfvhu8tFm9')] type='ToolCallResultMessage' | |
INFO:autogen_core:Calling message handler for collect_output_messages with message type GroupChatMessage published by retrieval_agent/59a8b872-f3ae-4bef-b591-dbf0ce08f46d | |
INFO:autogen_agentchat.events:source='retrieval_agent' models_usage=None content="b'pod/lightspeed-app-server-76dc755b78-cndqk\\npod/lightspeed-console-plugin-859868bbf8-lmc5t\\npod/lightspeed-operator-controller-manager-59b95c5c8f-n92g4\\n'" type='TextMessage' | |
INFO:autogen_core:Calling message handler for routing_agent with message type GroupChatAgentResponse published by retrieval_agent/59a8b872-f3ae-4bef-b591-dbf0ce08f46d | |
INFO:autogen_core:Calling message handler for knowledge_agent with message type GroupChatAgentResponse published by retrieval_agent/59a8b872-f3ae-4bef-b591-dbf0ce08f46d | |
INFO:autogen_core:Calling message handler for group_chat_manager with message type GroupChatAgentResponse published by retrieval_agent/59a8b872-f3ae-4bef-b591-dbf0ce08f46d | |
---------- retrieval_agent ---------- | |
[FunctionExecutionResult(content="b'pod/lightspeed-app-server-76dc755b78-cndqk\\npod/lightspeed-console-plugin-859868bbf8-lmc5t\\npod/lightspeed-operator-controller-manager-59b95c5c8f-n92g4\\n'", call_id='call_bjoaSd1nS0DrpCHfvhu8tFm9')] | |
---------- retrieval_agent ---------- | |
b'pod/lightspeed-app-server-76dc755b78-cndqk\npod/lightspeed-console-plugin-859868bbf8-lmc5t\npod/lightspeed-operator-controller-manager-59b95c5c8f-n92g4\n' | |
INFO:autogen_core:Publishing message of type GroupChatRequestPublish to all subscribers: {} | |
INFO:autogen_core:Calling message handler for retrieval_agent with message type GroupChatRequestPublish published by group_chat_manager/59a8b872-f3ae-4bef-b591-dbf0ce08f46d | |
INFO:httpx:HTTP Request: POST https://ols-test.openai.azure.com/openai/deployments/gpt-4o-mini/chat/completions?api-version=2024-02-01 "HTTP/1.1 200 OK" | |
INFO:autogen_core.events:{"prompt_tokens": 375, "completion_tokens": 91, "type": "LLMCall"} | |
INFO:autogen_core:Publishing message of type GroupChatMessage to all subscribers: {'message': TextMessage(source='retrieval_agent', models_usage=RequestUsage(prompt_tokens=375, completion_tokens=91), content='In the namespace `openshift-lightspeed`, the following pods are present:\n\n1. `lightspeed-app-server-76dc755b78-cndqk`\n2. `lightspeed-console-plugin-859868bbf8-lmc5t`\n3. `lightspeed-operator-controller-manager-59b95c5c8f-n92g4`\n\nIf you need more information about any specific pod, just let me know!', type='TextMessage')} | |
INFO:autogen_core:Publishing message of type GroupChatAgentResponse to all subscribers: {'agent_response': Response(chat_message=TextMessage(source='retrieval_agent', models_usage=RequestUsage(prompt_tokens=375, completion_tokens=91), content='In the namespace `openshift-lightspeed`, the following pods are present:\n\n1. `lightspeed-app-server-76dc755b78-cndqk`\n2. `lightspeed-console-plugin-859868bbf8-lmc5t`\n3. `lightspeed-operator-controller-manager-59b95c5c8f-n92g4`\n\nIf you need more information about any specific pod, just let me know!', type='TextMessage'), inner_messages=[])} | |
INFO:autogen_core:Calling message handler for collect_output_messages with message type GroupChatMessage published by retrieval_agent/59a8b872-f3ae-4bef-b591-dbf0ce08f46d | |
INFO:autogen_agentchat.events:source='retrieval_agent' models_usage=RequestUsage(prompt_tokens=375, completion_tokens=91) content='In the namespace `openshift-lightspeed`, the following pods are present:\n\n1. `lightspeed-app-server-76dc755b78-cndqk`\n2. `lightspeed-console-plugin-859868bbf8-lmc5t`\n3. `lightspeed-operator-controller-manager-59b95c5c8f-n92g4`\n\nIf you need more information about any specific pod, just let me know!' type='TextMessage' | |
INFO:autogen_core:Calling message handler for routing_agent with message type GroupChatAgentResponse published by retrieval_agent/59a8b872-f3ae-4bef-b591-dbf0ce08f46d | |
INFO:autogen_core:Calling message handler for knowledge_agent with message type GroupChatAgentResponse published by retrieval_agent/59a8b872-f3ae-4bef-b591-dbf0ce08f46d | |
INFO:autogen_core:Calling message handler for group_chat_manager with message type GroupChatAgentResponse published by retrieval_agent/59a8b872-f3ae-4bef-b591-dbf0ce08f46d | |
---------- retrieval_agent ---------- | |
In the namespace `openshift-lightspeed`, the following pods are present: | |
1. `lightspeed-app-server-76dc755b78-cndqk` | |
2. `lightspeed-console-plugin-859868bbf8-lmc5t` | |
3. `lightspeed-operator-controller-manager-59b95c5c8f-n92g4` | |
If you need more information about any specific pod, just let me know! | |
[Prompt tokens: 375, Completion tokens: 91] | |
INFO:autogen_core:Publishing message of type GroupChatRequestPublish to all subscribers: {} | |
INFO:autogen_core:Calling message handler for retrieval_agent with message type GroupChatRequestPublish published by group_chat_manager/59a8b872-f3ae-4bef-b591-dbf0ce08f46d | |
INFO:httpx:HTTP Request: POST https://ols-test.openai.azure.com/openai/deployments/gpt-4o-mini/chat/completions?api-version=2024-02-01 "HTTP/1.1 200 OK" | |
INFO:autogen_core.events:{"prompt_tokens": 473, "completion_tokens": 11, "type": "LLMCall"} | |
INFO:autogen_core:Publishing message of type GroupChatMessage to all subscribers: {'message': ToolCallMessage(source='retrieval_agent', models_usage=RequestUsage(prompt_tokens=473, completion_tokens=11), content=[FunctionCall(id='call_c7473IS3GN0QP3o0U9BrC0CR', arguments='{}', name='transfer_to_user')], type='ToolCallMessage')} | |
INFO:autogen_core:Calling message handler for collect_output_messages with message type GroupChatMessage published by retrieval_agent/59a8b872-f3ae-4bef-b591-dbf0ce08f46d | |
INFO:autogen_agentchat.events:source='retrieval_agent' models_usage=RequestUsage(prompt_tokens=473, completion_tokens=11) content=[FunctionCall(id='call_c7473IS3GN0QP3o0U9BrC0CR', arguments='{}', name='transfer_to_user')] type='ToolCallMessage' | |
---------- retrieval_agent ---------- | |
[FunctionCall(id='call_c7473IS3GN0QP3o0U9BrC0CR', arguments='{}', name='transfer_to_user')] | |
[Prompt tokens: 473, Completion tokens: 11] | |
INFO:autogen_core:Publishing message of type GroupChatMessage to all subscribers: {'message': ToolCallResultMessage(source='retrieval_agent', models_usage=None, content=[FunctionExecutionResult(content='Transferred to user, adopting the role of user immediately.', call_id='call_c7473IS3GN0QP3o0U9BrC0CR')], type='ToolCallResultMessage')} | |
INFO:autogen_core:Publishing message of type GroupChatMessage to all subscribers: {'message': HandoffMessage(source='retrieval_agent', models_usage=None, target='user', content='Transferred to user, adopting the role of user immediately.', type='HandoffMessage')} | |
INFO:autogen_core:Publishing message of type GroupChatAgentResponse to all subscribers: {'agent_response': Response(chat_message=HandoffMessage(source='retrieval_agent', models_usage=None, target='user', content='Transferred to user, adopting the role of user immediately.', type='HandoffMessage'), inner_messages=[ToolCallMessage(source='retrieval_agent', models_usage=RequestUsage(prompt_tokens=473, completion_tokens=11), content=[FunctionCall(id='call_c7473IS3GN0QP3o0U9BrC0CR', arguments='{}', name='transfer_to_user')], type='ToolCallMessage'), ToolCallResultMessage(source='retrieval_agent', models_usage=None, content=[FunctionExecutionResult(content='Transferred to user, adopting the role of user immediately.', call_id='call_c7473IS3GN0QP3o0U9BrC0CR')], type='ToolCallResultMessage')])} | |
INFO:autogen_core:Calling message handler for collect_output_messages with message type GroupChatMessage published by retrieval_agent/59a8b872-f3ae-4bef-b591-dbf0ce08f46d | |
INFO:autogen_agentchat.events:source='retrieval_agent' models_usage=None content=[FunctionExecutionResult(content='Transferred to user, adopting the role of user immediately.', call_id='call_c7473IS3GN0QP3o0U9BrC0CR')] type='ToolCallResultMessage' | |
INFO:autogen_core:Calling message handler for collect_output_messages with message type GroupChatMessage published by retrieval_agent/59a8b872-f3ae-4bef-b591-dbf0ce08f46d | |
INFO:autogen_agentchat.events:source='retrieval_agent' models_usage=None target='user' content='Transferred to user, adopting the role of user immediately.' type='HandoffMessage' | |
INFO:autogen_core:Calling message handler for routing_agent with message type GroupChatAgentResponse published by retrieval_agent/59a8b872-f3ae-4bef-b591-dbf0ce08f46d | |
INFO:autogen_core:Calling message handler for knowledge_agent with message type GroupChatAgentResponse published by retrieval_agent/59a8b872-f3ae-4bef-b591-dbf0ce08f46d | |
INFO:autogen_core:Calling message handler for group_chat_manager with message type GroupChatAgentResponse published by retrieval_agent/59a8b872-f3ae-4bef-b591-dbf0ce08f46d | |
---------- retrieval_agent ---------- | |
[FunctionExecutionResult(content='Transferred to user, adopting the role of user immediately.', call_id='call_c7473IS3GN0QP3o0U9BrC0CR')] | |
---------- retrieval_agent ---------- | |
Transferred to user, adopting the role of user immediately. | |
INFO:autogen_core:Publishing message of type GroupChatTermination to all subscribers: {'message': StopMessage(source='HandoffTermination', models_usage=None, content='Handoff to user from retrieval_agent detected.', type='StopMessage')} | |
INFO:autogen_core:Calling message handler for collect_output_messages with message type GroupChatTermination published by group_chat_manager/59a8b872-f3ae-4bef-b591-dbf0ce08f46d | |
INFO:autogen_agentchat.events:source='HandoffTermination' models_usage=None content='Handoff to user from retrieval_agent detected.' type='StopMessage' | |
---------- Summary ---------- | |
Number of messages: 11 | |
Finish reason: Handoff to user from retrieval_agent detected. | |
Total prompt tokens: 1294 | |
Total completion tokens: 136 | |
Duration: 2.44 seconds | |
User: ^C^CTraceback (most recent call last): | |
File "/home/thoraxe/Red_Hat/openshift/llamaindex-experiments/autogen-ols/main.py", line 244, in <module> | |
asyncio.run(assistant_run()) | |
File "/home/thoraxe/.pyenv/versions/3.11.5/lib/python3.11/asyncio/runners.py", line 190, in run | |
return runner.run(main) | |
^^^^^^^^^^^^^^^^ | |
File "/home/thoraxe/.pyenv/versions/3.11.5/lib/python3.11/asyncio/runners.py", line 118, in run | |
return self._loop.run_until_complete(task) | |
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | |
File "/home/thoraxe/.pyenv/versions/3.11.5/lib/python3.11/asyncio/base_events.py", line 640, in run_until_complete | |
self.run_forever() | |
File "/home/thoraxe/.pyenv/versions/3.11.5/lib/python3.11/asyncio/base_events.py", line 607, in run_forever | |
self._run_once() | |
File "/home/thoraxe/.pyenv/versions/3.11.5/lib/python3.11/asyncio/base_events.py", line 1922, in _run_once | |
handle._run() | |
File "/home/thoraxe/.pyenv/versions/3.11.5/lib/python3.11/asyncio/events.py", line 80, in _run | |
self._context.run(self._callback, *self._args) | |
File "/home/thoraxe/Red_Hat/openshift/llamaindex-experiments/autogen-ols/main.py", line 228, in assistant_run | |
user_message = input("User: ") | |
^^^^^^^^^^^^^^^ | |
File "/home/thoraxe/.pyenv/versions/3.11.5/lib/python3.11/asyncio/runners.py", line 157, in _on_sigint | |
raise KeyboardInterrupt() | |
KeyboardInterrupt |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment