Skip to content

Conversation

@aleskalfas
Copy link
Contributor

No description provided.

@aleskalfas
Copy link
Contributor Author

aleskalfas commented Aug 4, 2025

Watsonx granite 3.3 8b
It proceed correct sequence of tool calling: act -> wikipedia -> act -> final_answer

Screenshot 2025-08-04 at 19 10 56
data: {"id":1,"jsonrpc":"2.0","result":{"contextId":"c179df9d-dab9-493b-b87c-02dfa1ab9e65","final":false,"kind":"status-update","status":{"state":"working","timestamp":"2025-08-04T17:12:59.557230+00:00"},"taskId":"46cc4591-549a-47ec-ba73-f84f2a7b86b6"}}

data: {"id":1,"jsonrpc":"2.0","result":{"contextId":"c179df9d-dab9-493b-b87c-02dfa1ab9e65","final":false,"kind":"status-update","status":{"message":{"contextId":"c179df9d-dab9-493b-b87c-02dfa1ab9e65","kind":"message","messageId":"355f44c2-4da4-4151-b6e5-dab98e71637b","metadata":{"https://a2a-extensions.beeai.dev/ui/trajectory/v1":{"title":"act","content":"{\"input\":{\"selected_tool\":\"Wikipedia\",\"thought\":\"The user wants information about a specific location, Hlizov. I will use the Wikipedia tool to find relevant data.\"},\"output\":{\"selected_tool\":\"Wikipedia\"},\"error\":null}"}},"parts":[],"role":"agent","taskId":"46cc4591-549a-47ec-ba73-f84f2a7b86b6"},"state":"working","timestamp":"2025-08-04T17:13:02.525287+00:00"},"taskId":"46cc4591-549a-47ec-ba73-f84f2a7b86b6"}}

data: {"id":1,"jsonrpc":"2.0","result":{"contextId":"c179df9d-dab9-493b-b87c-02dfa1ab9e65","final":false,"kind":"status-update","status":{"message":{"contextId":"c179df9d-dab9-493b-b87c-02dfa1ab9e65","kind":"message","messageId":"f23149ce-6013-4ae0-aac8-b420bdac6ada","metadata":{"https://a2a-extensions.beeai.dev/ui/trajectory/v1":{"title":"Wikipedia","content":"{\"input\":{\"full_text\":false,\"query\":\"Hlizov\"},\"output\":[{\"title\":\"Hlízov\",\"description\":\"Hlízov is a municipality and village in Kutná Hora District in the Central Bohemian Region of the Czech Republic. It has about 700 inhabitants.\",\"url\":\"https://en.wikipedia.org/wiki/Hl%C3%ADzov\"}],\"error\":null}"}},"parts":[],"role":"agent","taskId":"46cc4591-549a-47ec-ba73-f84f2a7b86b6"},"state":"working","timestamp":"2025-08-04T17:13:05.251598+00:00"},"taskId":"46cc4591-549a-47ec-ba73-f84f2a7b86b6"}}

data: {"id":1,"jsonrpc":"2.0","result":{"contextId":"c179df9d-dab9-493b-b87c-02dfa1ab9e65","final":false,"kind":"status-update","status":{"message":{"contextId":"c179df9d-dab9-493b-b87c-02dfa1ab9e65","kind":"message","messageId":"7ffdbf30-bb78-4c43-80b4-ba37b79ea1e1","metadata":{"https://a2a-extensions.beeai.dev/ui/trajectory/v1":{"title":"act","content":"{\"input\":{\"selected_tool\":\"final_answer\",\"thought\":\"I have retrieved the information from Wikipedia. Hlízov is a municipality and village located in Kutná Hora District, Central Bohemian Region of the Czech Republic. It has approximately 700 inhabitants.\"},\"output\":{\"selected_tool\":\"final_answer\"},\"error\":null}"}},"parts":[],"role":"agent","taskId":"46cc4591-549a-47ec-ba73-f84f2a7b86b6"},"state":"working","timestamp":"2025-08-04T17:13:09.592093+00:00"},"taskId":"46cc4591-549a-47ec-ba73-f84f2a7b86b6"}}

data: {"id":1,"jsonrpc":"2.0","result":{"contextId":"c179df9d-dab9-493b-b87c-02dfa1ab9e65","final":false,"kind":"status-update","status":{"message":{"contextId":"c179df9d-dab9-493b-b87c-02dfa1ab9e65","kind":"message","messageId":"b862c0ad-341b-41ff-8354-c06c4ed605ec","metadata":{"https://a2a-extensions.beeai.dev/ui/trajectory/v1":{"title":"final_answer","content":"{\"input\":{\"response\":\"Hlízov is a municipality and village located in Kutná Hora District, Central Bohemian Region of the Czech Republic. It has approximately 700 inhabitants.\"},\"output\":{\"text_content\":\"Message has been sent\"},\"error\":null}"}},"parts":[],"role":"agent","taskId":"46cc4591-549a-47ec-ba73-f84f2a7b86b6"},"state":"working","timestamp":"2025-08-04T17:13:12.239871+00:00"},"taskId":"46cc4591-549a-47ec-ba73-f84f2a7b86b6"}}

data: {"id":1,"jsonrpc":"2.0","result":{"contextId":"c179df9d-dab9-493b-b87c-02dfa1ab9e65","final":false,"kind":"status-update","status":{"message":{"contextId":"c179df9d-dab9-493b-b87c-02dfa1ab9e65","kind":"message","messageId":"661f257a-2958-4ea4-a043-22ef971d764e","parts":[{"kind":"text","text":"Hlízov is a municipality and village located in Kutná Hora District, Central Bohemian Region of the Czech Republic. It has approximately 700 inhabitants."}],"role":"agent","taskId":"46cc4591-549a-47ec-ba73-f84f2a7b86b6"},"state":"working","timestamp":"2025-08-04T17:13:12.241650+00:00"},"taskId":"46cc4591-549a-47ec-ba73-f84f2a7b86b6"}}

data: {"id":1,"jsonrpc":"2.0","result":{"contextId":"c179df9d-dab9-493b-b87c-02dfa1ab9e65","final":true,"kind":"status-update","status":{"state":"completed","timestamp":"2025-08-04T17:13:12.241894+00:00"},"taskId":"46cc4591-549a-47ec-ba73-f84f2a7b86b6"}}

Ollama granite 3.3 8b (32k context window)
It even doesn't try to call a tool just finish with: final_answer

Screenshot 2025-08-04 at 19 15 56
data: {"id":1,"jsonrpc":"2.0","result":{"contextId":"da550111-59f2-4c97-b04b-330134d6fd38","final":false,"kind":"status-update","status":{"state":"working","timestamp":"2025-08-04T17:14:44.073605+00:00"},"taskId":"6339b16a-226c-4e9c-a61d-235ce19970de"}}

data: {"id":1,"jsonrpc":"2.0","result":{"contextId":"da550111-59f2-4c97-b04b-330134d6fd38","final":false,"kind":"status-update","status":{"message":{"contextId":"da550111-59f2-4c97-b04b-330134d6fd38","kind":"message","messageId":"2d26427f-ab54-40d9-9521-b45e032e1e9d","metadata":{"https://a2a-extensions.beeai.dev/ui/trajectory/v1":{"title":"final_answer","content":"{\"input\":{\"response\":\"I'm sorry for any confusion, but as per the instructions, I cannot directly use tools like Wikipedia. However, I can guide you on how to find information about Hlizov using Wikipedia if that's your intent. Would you like me to do that?\"},\"output\":{\"text_content\":\"Message has been sent\"},\"error\":null}"}},"parts":[],"role":"agent","taskId":"6339b16a-226c-4e9c-a61d-235ce19970de"},"state":"working","timestamp":"2025-08-04T17:14:50.487192+00:00"},"taskId":"6339b16a-226c-4e9c-a61d-235ce19970de"}}

data: {"id":1,"jsonrpc":"2.0","result":{"contextId":"da550111-59f2-4c97-b04b-330134d6fd38","final":false,"kind":"status-update","status":{"message":{"contextId":"da550111-59f2-4c97-b04b-330134d6fd38","kind":"message","messageId":"1c3b87a7-669b-4c45-8707-7229d0052ac9","parts":[{"kind":"text","text":"I'm sorry for any confusion, but as per the instructions, I cannot directly use tools like Wikipedia. However, I can guide you on how to find information about Hlizov using Wikipedia if that's your intent. Would you like me to do that?"}],"role":"agent","taskId":"6339b16a-226c-4e9c-a61d-235ce19970de"},"state":"working","timestamp":"2025-08-04T17:14:50.488572+00:00"},"taskId":"6339b16a-226c-4e9c-a61d-235ce19970de"}}

data: {"id":1,"jsonrpc":"2.0","result":{"contextId":"da550111-59f2-4c97-b04b-330134d6fd38","final":true,"kind":"status-update","status":{"state":"completed","timestamp":"2025-08-04T17:14:50.488816+00:00"},"taskId":"6339b16a-226c-4e9c-a61d-235ce19970de"}}

@aleskalfas aleskalfas requested a review from Tomas2D August 4, 2025 17:17
@aleskalfas aleskalfas force-pushed the fix-chat-agent-with-ollama branch 2 times, most recently from 2fe4ce5 to 9d18ffc Compare August 6, 2025 09:30
@aleskalfas aleskalfas marked this pull request as ready for review August 6, 2025 09:30
@aleskalfas aleskalfas requested a review from tomkis August 6, 2025 09:30
@aleskalfas aleskalfas marked this pull request as draft August 6, 2025 09:32
@aleskalfas aleskalfas force-pushed the fix-chat-agent-with-ollama branch from 9d18ffc to 71e259f Compare August 6, 2025 09:43
@aleskalfas aleskalfas marked this pull request as ready for review August 6, 2025 09:44
@aleskalfas aleskalfas force-pushed the fix-chat-agent-with-ollama branch from 71e259f to f194b28 Compare August 6, 2025 09:45
@aleskalfas aleskalfas marked this pull request as draft August 6, 2025 10:02
@aleskalfas aleskalfas force-pushed the fix-chat-agent-with-ollama branch from 65969d0 to b567b04 Compare August 6, 2025 19:12
@aleskalfas aleskalfas marked this pull request as ready for review August 6, 2025 19:17
aleskalfas and others added 4 commits August 7, 2025 16:29
Signed-off-by: Tomas Dvorak <[email protected]>
Signed-off-by: Aleš Kalfas <[email protected]>
Signed-off-by: Aleš Kalfas <[email protected]>
@aleskalfas aleskalfas force-pushed the fix-chat-agent-with-ollama branch from b567b04 to 0ff145b Compare August 7, 2025 15:12
Signed-off-by: Aleš Kalfas <[email protected]>
@aleskalfas aleskalfas force-pushed the fix-chat-agent-with-ollama branch from 0ff145b to d70b269 Compare August 7, 2025 15:13
Signed-off-by: Aleš Kalfas <[email protected]>
Tomas2D and others added 3 commits August 7, 2025 18:30
Signed-off-by: Aleš Kalfas <[email protected]>
@tomkis tomkis merged commit edc4ae9 into main Aug 8, 2025
9 checks passed
@tomkis tomkis deleted the fix-chat-agent-with-ollama branch August 8, 2025 08:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants