mirror of
https://github.com/getpaseo/paseo.git
synced 2026-11-26 02:05:31 +00:00
fix(agents): forward history option through createAgentInternal
This commit is contained in:
@@ -1749,9 +1749,10 @@ export class AgentManager {
|
||||
config: AgentSessionConfig,
|
||||
resolvedAgentId: string,
|
||||
options: CreateAgentOptions,
|
||||
historyOptions: { history: "discard" | "keep" } = { history: "discard" },
|
||||
): Promise<ManagedAgent> {
|
||||
return this.launchAgent(resolvedAgentId, () =>
|
||||
this.createAgentSession(config, resolvedAgentId, options),
|
||||
this.createAgentSession(config, resolvedAgentId, options, historyOptions),
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user