AgentBase Factory
AgentBase factory is an npm module in the Uncodie projects that will allow the execution of previous, current, and future agents.
Resumen
Configuracion
type ModelType = 'open-ai' | 'geminis';
interface Model{
name: ModelType;
secret: string;
}
interface AgentConfig {
// ID of the agent in the model
agentId: string;
// LLM model to use
model?: ModelType;
//prompt to send model
prompt: string;
// Dictionary representing the association of the tool with the script to execute
// where the key is the name of the tool and the value is the name of the script in UtilsScript
toolFunctionDictionary: { [key: string]: string };
responseVars: string[]
}
interface Script {
name: string;
previousAgents: AgentConfig[];
activeAgents: AgentConfig[];
followingAgents: AgentConfig[];
}
interface Config {
// Sets the base path from where data will be processed and obtained
dirBase?: string;
// Sets the base path where the UtilsScript file will be searched for
dirScriptBase?: string;
// Array of objects that sets the scripts that agentbase-factory will process
scripts: Script[];
// Array of objects to set model configurations
// If model is undefined then agentbase factory set openai and uncodie token by default
models?: Model
}
Execution
Last updated