DocsAPI reference

Interface@astack-tech/integrations

DeepseekResponseToolCall

Defined in: packages/integrations/src/model-provider/openai-compatible/index.ts:71

Tool call returned by chatCompletion. It carries both the OpenAI shape (type, function) and the internal shape (tool_name, arguments).

Properties

Property Type Description Defined in
arguments Record<string, unknown> Parsed arguments. JSON that is not an object becomes {}. packages/integrations/src/model-provider/openai-compatible/index.ts:86
function object The call in the OpenAI shape: function name and raw JSON arguments. An empty argument string is sent as {}. packages/integrations/src/model-provider/openai-compatible/index.ts:77
function.arguments string Arguments as JSON text. packages/integrations/src/model-provider/openai-compatible/index.ts:81
function.name string Name of the tool to call. packages/integrations/src/model-provider/openai-compatible/index.ts:79
id string Identifier assigned by the API. A tool message answers the call with it. packages/integrations/src/model-provider/openai-compatible/index.ts:73
tool_name string Name of the tool, same as function.name. packages/integrations/src/model-provider/openai-compatible/index.ts:84
type "function" Always function. packages/integrations/src/model-provider/openai-compatible/index.ts:75