MCPcopy Create free account
hub / github.com/tiann/hapi / setModel

Method setModel

cli/src/agent/types.ts:91–91  ·  view source on GitHub ↗
(sessionId: string, modelId: string, opts?: { flavor?: AgentFlavor })

Source from the content-addressed store, hash-verified

89 initialize(): Promise<void>;
90 newSession(config: AgentSessionConfig): Promise<string>;
91 setModel?(sessionId: string, modelId: string, opts?: { flavor?: AgentFlavor }): Promise<void>;
92 setConfigOption?(sessionId: string, configId: string, value: string): Promise<void>;
93 getSessionModelsMetadata?(sessionId: string): AgentSessionModelsMetadata | undefined;
94 getThoughtLevelConfigOption?(sessionId: string): AgentSessionConfigOptionDescriptor | undefined;

Callers 13

runMainLoopMethod · 0.65
syncSessionModeFunction · 0.65
syncSessionModeFunction · 0.65
syncSessionModeFunction · 0.65
runMainLoopMethod · 0.65
applyResolvedModelMethod · 0.65
syncSessionModesFunction · 0.65
runMainLoopMethod · 0.65
syncSessionModeFunction · 0.65

Implementers 1

AcpSdkBackendcli/src/agent/backends/acp/AcpSdkBacke

Calls

no outgoing calls

Tested by

no test coverage detected