Standardized output format for blocks/tools. Updated executor so we can now resolve sub-json values for tagged inputs. Updated serializer to match new block output format.

This commit is contained in:
Waleed Latif
2025-01-30 13:50:35 -08:00
parent 15b42c7d19
commit 3850c112ca
31 changed files with 798 additions and 775 deletions

View File

@@ -13,8 +13,11 @@ interface RequestParams {
}
interface RequestResponse extends ToolResponse {
status: number
headers: Record<string, string>
output: {
data: any
status: number
headers: Record<string, string>
}
}
export const requestTool: ToolConfig<RequestParams, RequestResponse> = {
@@ -132,9 +135,12 @@ export const requestTool: ToolConfig<RequestParams, RequestResponse> = {
: response.text())
return {
output: data,
status: response.status,
headers
success: response.ok,
output: {
data,
status: response.status,
headers
}
}
},