refactor(tools): unify tool APIs and result handling (#38367)
This commit is contained in:
parent
8cac010bac
commit
79c1544072
133 changed files with 3602 additions and 2770 deletions
|
|
@ -473,10 +473,7 @@ export namespace Backend {
|
|||
: `${registration.options.namespace.replaceAll(".", "_")}_${registration.name}`
|
||||
}
|
||||
|
||||
export const ToolProgress = Schema.Struct({
|
||||
structured: Schema.Record(Schema.String, Schema.Json),
|
||||
content: Schema.optionalKey(Schema.Array(ToolContent)),
|
||||
})
|
||||
export const ToolProgress = Schema.Record(Schema.String, Schema.Json)
|
||||
export interface ToolProgress extends Schema.Schema.Type<typeof ToolProgress> {}
|
||||
|
||||
export const ToolOutput = Schema.Struct({
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue