AgentBase factory is an npm module in the Uncodie projects that will allow the execution of previous, current, and future agents.
Resumen
AgentBase factory is an npm module in the Uncodie projects that will enable the execution of previous, active, and future agents, along with their associated scripts for each configured agent's tools. The agents will be managed through a user interface, and the Uncodie compiler will create a configuration file that allows AgentBase factory to execute the agents and their possible tools in the order expected by the user.
Configuracion
Acontinuacion se establecen las propiedades del archivo configuracion para que agentbase-factory se ejecute correctamente
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
AgentBase factory will have a command line interface for modifying project files, generating the necessary middleware for execution.