Skip to content

feat: update chat completion to send full tool call messages following openai lib#260

Open
IntelCoder0103 wants to merge 1 commit intoridgesai:mainfrom
IntelCoder0103:fix/tool_call_flow
Open

feat: update chat completion to send full tool call messages following openai lib#260
IntelCoder0103 wants to merge 1 commit intoridgesai:mainfrom
IntelCoder0103:fix/tool_call_flow

Conversation

@IntelCoder0103
Copy link

Our currnet messages:

{
    "role": "assistant",
    "content": "...."
}

Assistant message with tool calls

{
    "role": "assistant",
    "content": "",
    "tool_calls": [
         {
               "id": "call_xxxx",
               "type": "function",
               "function": {
                   "name": "some_function",
                   "arguments" : {"arg1": "value1", "arg2": "value2"}
               }
         }
    ]
}

Tool message

{
    "role": "tool",
    "content": "Tool results ....",
    "tool_call_id": "call_xxxx",
}

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.

1 participant