UNPKG

@agentica/core

Version:

Agentic AI Library specialized in LLM Function Calling

47 lines (46 loc) 1.58 kB
import type { AgenticaOperation } from "./AgenticaOperation"; /** * Collection of operations used in the Agentica Agent. * * `IAgenticaOperationCollection` is an interface type representing * a collection of operations for several purposes used in the * {@link Agentica} internally. * * @author Samchon */ export interface AgenticaOperationCollection { /** * List of every operations. */ array: AgenticaOperation[]; /** * Divided operations. * * If you've configured the {@link IAgenticaConfig.capacity} property, * the A.I. chatbot ({@link Agentica}) will separate the operations * into the several groups to divide and conquer and LLM function selecting * for accuracy. * * In that case, this property `divided`'s length would be dtermined by * dividing the number of operations ({@link array}'s length) by the * {@link IAgenticaConfig.capacity}. * * Otherwise, if the {@link IAgenticaConfig.capacity} has not been * configured, this `divided` property would be the `undefined` value. */ divided?: AgenticaOperation[][] | undefined; /** * Flat dictionary of operations. * * Dictionary of operations with their {@link IAgenticaOperation.name}. */ flat: Map<string, AgenticaOperation>; /** * Group dictionary of operations. * * Dictionary of operations with their * {@link IAgenticaOperation.controller.name} and * {@link IAgenticaOperation.function.name}. */ group: Map<string, Map<string, AgenticaOperation>>; }