WebIDLpedia

LanguageModelToolCall interface

Definition

Prompt API defines LanguageModelToolCall



// Represents a tool call requested by the language model.
[Exposed=Window, SecureContext]
interface LanguageModelToolCall {
  constructor(LanguageModelToolCallInit init);
  readonly attribute DOMString callId;
  readonly attribute DOMString name;
  readonly attribute object? arguments;
};

Methods and attributes that return objects implementing LanguageModelToolCall