mirror of
https://github.com/hwchase17/langchain.git
synced 2025-09-25 04:49:17 +00:00
core[patch]: introduce ToolMessage.status (#24628)
Anthropic models (including via Bedrock and other cloud platforms) accept a status/is_error attribute on tool messages/results (specifically in `tool_result` content blocks for Anthropic API). Adding a ToolMessage.status attribute so that users can set this attribute when using those models
This commit is contained in:
@@ -880,6 +880,15 @@
|
||||
'title': 'Response Metadata',
|
||||
'type': 'object',
|
||||
}),
|
||||
'status': dict({
|
||||
'default': 'success',
|
||||
'enum': list([
|
||||
'success',
|
||||
'error',
|
||||
]),
|
||||
'title': 'Status',
|
||||
'type': 'string',
|
||||
}),
|
||||
'tool_call_id': dict({
|
||||
'title': 'Tool Call Id',
|
||||
'type': 'string',
|
||||
|
@@ -5806,6 +5806,15 @@
|
||||
'title': 'Response Metadata',
|
||||
'type': 'object',
|
||||
}),
|
||||
'status': dict({
|
||||
'default': 'success',
|
||||
'enum': list([
|
||||
'success',
|
||||
'error',
|
||||
]),
|
||||
'title': 'Status',
|
||||
'type': 'string',
|
||||
}),
|
||||
'tool_call_id': dict({
|
||||
'title': 'Tool Call Id',
|
||||
'type': 'string',
|
||||
@@ -6483,6 +6492,15 @@
|
||||
'title': 'Response Metadata',
|
||||
'type': 'object',
|
||||
}),
|
||||
'status': dict({
|
||||
'default': 'success',
|
||||
'enum': list([
|
||||
'success',
|
||||
'error',
|
||||
]),
|
||||
'title': 'Status',
|
||||
'type': 'string',
|
||||
}),
|
||||
'tool_call_id': dict({
|
||||
'title': 'Tool Call Id',
|
||||
'type': 'string',
|
||||
@@ -7075,6 +7093,15 @@
|
||||
'title': 'Response Metadata',
|
||||
'type': 'object',
|
||||
}),
|
||||
'status': dict({
|
||||
'default': 'success',
|
||||
'enum': list([
|
||||
'success',
|
||||
'error',
|
||||
]),
|
||||
'title': 'Status',
|
||||
'type': 'string',
|
||||
}),
|
||||
'tool_call_id': dict({
|
||||
'title': 'Tool Call Id',
|
||||
'type': 'string',
|
||||
@@ -7724,6 +7751,15 @@
|
||||
'title': 'Response Metadata',
|
||||
'type': 'object',
|
||||
}),
|
||||
'status': dict({
|
||||
'default': 'success',
|
||||
'enum': list([
|
||||
'success',
|
||||
'error',
|
||||
]),
|
||||
'title': 'Status',
|
||||
'type': 'string',
|
||||
}),
|
||||
'tool_call_id': dict({
|
||||
'title': 'Tool Call Id',
|
||||
'type': 'string',
|
||||
@@ -8376,6 +8412,15 @@
|
||||
'title': 'Response Metadata',
|
||||
'type': 'object',
|
||||
}),
|
||||
'status': dict({
|
||||
'default': 'success',
|
||||
'enum': list([
|
||||
'success',
|
||||
'error',
|
||||
]),
|
||||
'title': 'Status',
|
||||
'type': 'string',
|
||||
}),
|
||||
'tool_call_id': dict({
|
||||
'title': 'Tool Call Id',
|
||||
'type': 'string',
|
||||
@@ -8975,6 +9020,15 @@
|
||||
'title': 'Response Metadata',
|
||||
'type': 'object',
|
||||
}),
|
||||
'status': dict({
|
||||
'default': 'success',
|
||||
'enum': list([
|
||||
'success',
|
||||
'error',
|
||||
]),
|
||||
'title': 'Status',
|
||||
'type': 'string',
|
||||
}),
|
||||
'tool_call_id': dict({
|
||||
'title': 'Tool Call Id',
|
||||
'type': 'string',
|
||||
@@ -9547,6 +9601,15 @@
|
||||
'title': 'Response Metadata',
|
||||
'type': 'object',
|
||||
}),
|
||||
'status': dict({
|
||||
'default': 'success',
|
||||
'enum': list([
|
||||
'success',
|
||||
'error',
|
||||
]),
|
||||
'title': 'Status',
|
||||
'type': 'string',
|
||||
}),
|
||||
'tool_call_id': dict({
|
||||
'title': 'Tool Call Id',
|
||||
'type': 'string',
|
||||
@@ -10228,6 +10291,15 @@
|
||||
'title': 'Response Metadata',
|
||||
'type': 'object',
|
||||
}),
|
||||
'status': dict({
|
||||
'default': 'success',
|
||||
'enum': list([
|
||||
'success',
|
||||
'error',
|
||||
]),
|
||||
'title': 'Status',
|
||||
'type': 'string',
|
||||
}),
|
||||
'tool_call_id': dict({
|
||||
'title': 'Tool Call Id',
|
||||
'type': 'string',
|
||||
|
Reference in New Issue
Block a user