Represents a chunk of a message, which can be concatenated with other message chunks. It includes a method _merge_kwargs_dict()
for merging additional keyword arguments from another BaseMessageChunk
into this one. It also overrides the __add__()
method to support concatenation of BaseMessageChunk
instances.
Optional
kwargs: Record<string, unknown>Inherited from BaseMessage.constructor
Additional keyword arguments
Inherited from BaseMessage.additional_kwargs
The content of the message.
Inherited from BaseMessage.content
Optional
id
id?: string
An optional unique identifier for the message. This should ideally be provided by the provider/model which created the message.
Inherited from BaseMessage.id
Optional
name
name?: string
The name of the message sender in a multi-user chat.
Inherited from BaseMessage.name
response_metadata: Record<string, any>
Response metadata. For example: response headers, logprobs, token counts, model name.
Inherited from BaseMessage.response_metadata
Inherited from BaseMessage.[toStringTag]
Get text content of the message.
Returns stringInherited from BaseMessage.text
Abstract
concat
The type of the message.
Returns MessageTypeInherited from BaseMessage.getType
Inherited from BaseMessage.toDict
Inherited from BaseMessage.toJSON
Inherited from BaseMessage.toJSONNotImplemented
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4