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
7 changes: 7 additions & 0 deletions llm/tools.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,10 @@ type FunctionCall struct {
type ToolCall struct {
ID string `json:"id,omitempty"`

// ResponseItemID is the Responses API item id. It is distinct from ID,
// which carries the function/custom tool call_id.
ResponseItemID string `json:"response_item_id,omitempty"`

// The type of the tool. Currently, only `function` is supported.
Type string `json:"type,omitempty"`

Expand Down Expand Up @@ -272,6 +276,9 @@ type ResponseCustomToolCall struct {
CallID string `json:"call_id"`
// Name is the name of the custom tool being called.
Name string `json:"name"`
// Namespace is the namespace qualifier for tools registered as part of a
// namespace tool group (e.g. an MCP server).
Namespace string `json:"namespace,omitempty"`
// Input is the freeform input for the custom tool call generated by the model.
Input string `json:"input"`
}
Loading
Loading