Feat: Render tool metadata after permission rejection. (#1949)
Signed-off-by: jmug <u.g.a.mariano@gmail.com>
This commit is contained in:
parent
8355ee2061
commit
0befc5d602
6 changed files with 34 additions and 9 deletions
|
|
@ -2023,17 +2023,19 @@ func (r toolStateCompletedTimeJSON) RawJSON() string {
|
|||
}
|
||||
|
||||
type ToolStateError struct {
|
||||
Error string `json:"error,required"`
|
||||
Input map[string]interface{} `json:"input,required"`
|
||||
Status ToolStateErrorStatus `json:"status,required"`
|
||||
Time ToolStateErrorTime `json:"time,required"`
|
||||
JSON toolStateErrorJSON `json:"-"`
|
||||
Error string `json:"error,required"`
|
||||
Input map[string]interface{} `json:"input,required"`
|
||||
Metadata map[string]interface{} `json:"metadata"`
|
||||
Status ToolStateErrorStatus `json:"status,required"`
|
||||
Time ToolStateErrorTime `json:"time,required"`
|
||||
JSON toolStateErrorJSON `json:"-"`
|
||||
}
|
||||
|
||||
// toolStateErrorJSON contains the JSON metadata for the struct [ToolStateError]
|
||||
type toolStateErrorJSON struct {
|
||||
Error apijson.Field
|
||||
Input apijson.Field
|
||||
Metadata apijson.Field
|
||||
Status apijson.Field
|
||||
Time apijson.Field
|
||||
raw string
|
||||
|
|
|
|||
|
|
@ -347,6 +347,9 @@ export type ToolStateError = {
|
|||
input: {
|
||||
[key: string]: unknown
|
||||
}
|
||||
metadata: {
|
||||
[key: string]: unknown
|
||||
}
|
||||
error: string
|
||||
time: {
|
||||
start: number
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue