langchain.js
Preparing search index...
@langchain/core
messages
RemoveMessageFields
Interface RemoveMessageFields<TStructure>
interface
RemoveMessageFields
<
TStructure
extends
MessageStructure
=
MessageStructure
,
>
{
additional_kwargs
?:
{
function_call
?:
FunctionCall
;
tool_calls
?:
OpenAIToolCall
[]
;
[
key
:
string
]:
unknown
;
}
;
contentBlocks
?:
ContentBlock
.
Standard
[]
;
id
:
string
;
name
?:
string
;
response_metadata
?:
Partial
<
$InferResponseMetadata
<
TStructure
,
"remove"
>
>
;
}
Type Parameters
TStructure
extends
MessageStructure
=
MessageStructure
Hierarchy
Omit
<
BaseMessageFields
<
TStructure
,
"remove"
>
,
"content"
>
RemoveMessageFields
Index
Properties
additional_
kwargs?
content
Blocks?
id
name?
response_
metadata?
Properties
Optional
additional_
kwargs
additional_kwargs
?:
{
function_call
?:
FunctionCall
;
tool_calls
?:
OpenAIToolCall
[]
;
[
key
:
string
]:
unknown
;
}
Type Declaration
[
key
:
string
]:
unknown
Optional
function_call
?:
FunctionCall
Deprecated
Use "tool_calls" field on AIMessages instead
Optional
tool_calls
?:
OpenAIToolCall
[]
Deprecated
Use "tool_calls" field on AIMessages instead
Deprecated
Optional
content
Blocks
contentBlocks
?:
ContentBlock
.
Standard
[]
id
id
:
string
The ID of the message to remove.
Optional
name
name
?:
string
Optional
response_
metadata
response_metadata
?:
Partial
<
$InferResponseMetadata
<
TStructure
,
"remove"
>
>
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Properties
additional_
kwargs
content
Blocks
id
name
response_
metadata
langchain.js
Loading...
Deprecated
Use "tool_calls" field on AIMessages instead