Added available tools to block configs, added ability to run workflow

This commit is contained in:
Waleed Latif
2025-01-16 23:43:30 -08:00
parent 87b8c60684
commit e6965cfc9d
5 changed files with 204 additions and 2 deletions
+3
View File
@@ -21,6 +21,9 @@ export const AgentBlock: BlockConfig = {
}
}
},
tools: {
access: ['model']
},
subBlocks: [
{
id: 'systemPrompt',
+3
View File
@@ -12,6 +12,9 @@ export const ApiBlock: BlockConfig = {
},
workflow: {
outputType: 'json',
tools: {
access: ['http']
},
subBlocks: [
{
id: 'url',
+3
View File
@@ -12,6 +12,9 @@ export const FunctionBlock: BlockConfig = {
},
workflow: {
outputType: 'json',
tools: {
access: ['function']
},
subBlocks: [
{
id: 'code',
+4
View File
@@ -44,5 +44,9 @@ export interface BlockConfig {
workflow: {
outputType: OutputTypeConfig
subBlocks: SubBlockConfig[]
tools?: {
access: string[]
config?: Record<string, any>
}
}
}