Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions include/ryzenai/tool_calls.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,10 @@ std::pair<std::vector<ToolCall>, std::string> extractToolCalls(const std::string
// Format tool calls in OpenAI API format
json formatToolCallsForOpenAI(const std::vector<ToolCall>& tool_calls);

// Build chat.completion.chunk JSON payloads (without the "data: " prefix) for
// streaming tool_calls deltas. Uses the same OpenAI shape as formatToolCallsForOpenAI.
std::vector<std::string> buildToolCallStreamChunks(const json& openai_tool_calls,
const std::string& model_id);

} // namespace ryzenai

Loading
Loading