mirror of
https://github.com/simstudioai/sim.git
synced 2026-09-24 15:45:35 +08:00
Added available tools to block configs, added ability to run workflow
This commit is contained in:
@@ -21,6 +21,9 @@ export const AgentBlock: BlockConfig = {
|
||||
}
|
||||
}
|
||||
},
|
||||
tools: {
|
||||
access: ['model']
|
||||
},
|
||||
subBlocks: [
|
||||
{
|
||||
id: 'systemPrompt',
|
||||
|
||||
@@ -12,6 +12,9 @@ export const ApiBlock: BlockConfig = {
|
||||
},
|
||||
workflow: {
|
||||
outputType: 'json',
|
||||
tools: {
|
||||
access: ['http']
|
||||
},
|
||||
subBlocks: [
|
||||
{
|
||||
id: 'url',
|
||||
|
||||
@@ -12,6 +12,9 @@ export const FunctionBlock: BlockConfig = {
|
||||
},
|
||||
workflow: {
|
||||
outputType: 'json',
|
||||
tools: {
|
||||
access: ['function']
|
||||
},
|
||||
subBlocks: [
|
||||
{
|
||||
id: 'code',
|
||||
|
||||
@@ -44,5 +44,9 @@ export interface BlockConfig {
|
||||
workflow: {
|
||||
outputType: OutputTypeConfig
|
||||
subBlocks: SubBlockConfig[]
|
||||
tools?: {
|
||||
access: string[]
|
||||
config?: Record<string, any>
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user