[GH-ISSUE #2609] [Question\Suggestion] Result of function calling. #27297

Open
opened 2026-04-22 04:31:23 -05:00 by GiteaMirror · 1 comment
Owner

Originally created by @gerwintmg on GitHub (Feb 20, 2024).
Original GitHub issue: https://github.com/ollama/ollama/issues/2609

Originally assigned to: @mxyng on GitHub.

Currently i am experimenting with function calling (getting a json result), and returning the result from the function call to the LLM

when using the chat api you can specify system, user and assistent. I was wondering if we would be able to add the option of function Result

getting the following chat

{
"type": "system",
"content": "When ask about the weather give a Json Output."
},
{
"type": "user",
"content": "What is the weather like in Brussels?"
},
{
"type": "assistent",
"content": "{
   "City":"Brussel"
}"
},
{
"type": "function_result",
"content": "{
 Temperature: "24 C"
 Rain: "40%"
 }"
},
{
"type": "assistent",
"content": "Currently it is 24 degrees Celsius and there is a 40% chance of rain. "
}

Or is there already a way to use the results of a function Call?

Originally created by @gerwintmg on GitHub (Feb 20, 2024). Original GitHub issue: https://github.com/ollama/ollama/issues/2609 Originally assigned to: @mxyng on GitHub. Currently i am experimenting with function calling (getting a json result), and returning the result from the function call to the LLM when using the chat api you can specify system, user and assistent. I was wondering if we would be able to add the option of **function Result** getting the following chat ```json { "type": "system", "content": "When ask about the weather give a Json Output." }, { "type": "user", "content": "What is the weather like in Brussels?" }, { "type": "assistent", "content": "{ "City":"Brussel" }" }, { "type": "function_result", "content": "{ Temperature: "24 C" Rain: "40%" }" }, { "type": "assistent", "content": "Currently it is 24 degrees Celsius and there is a 40% chance of rain. " } ``` Or is there already a way to use the results of a function Call?
GiteaMirror added the questionapi labels 2026-04-22 04:31:23 -05:00
Author
Owner

@mikey60 commented on GitHub (Feb 29, 2024):

I am not sure that it matters or that is your intent, but assistent should be assistant.

<!-- gh-comment-id:1971666163 --> @mikey60 commented on GitHub (Feb 29, 2024): I am not sure that it matters or that is your intent, but assistent should be assistant.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#27297