import { SerializedLLMChain } from "../chains/index.js"; import type { AgentInput } from "./index.js"; export type AgentAction = { tool: string; toolInput: string; log: string; }; export type AgentFinish = { returnValues: Record; log: string; }; export type AgentStep = { action: AgentAction; observation: string; }; export type StoppingMethod = "force" | "generate"; export type SerializedAgentT = { _type: TType; llm_chain?: SerializedLLMChain; llm_chain_path?: string; } & (({ load_from_llm_and_tools: true; } & FromLLMInput) | ({ load_from_llm_and_tools?: false; } & ConstructorInput));