OptionalargsIf provided, a JSON substring of the arguments to the tool call
OptionalidIf provided, a substring of an identifier for the tool call
OptionalindexIf provided, the index of the tool call in a sequence
OptionalnameIf provided, a substring of the name of the tool to be called
Optional Readonlytype
A chunk of a tool call (e.g., as part of a stream). When merging ToolCallChunks (e.g., via AIMessageChunk.add), all string attributes are concatenated. Chunks are only merged if their values of
indexare equal and not None.Example