mirror of
https://github.com/openclaw/openclaw.git
synced 2026-07-18 13:41:35 +00:00
32 lines
971 B
TypeScript
32 lines
971 B
TypeScript
// Voice Call plugin module implements realtime fast context behavior.
|
|
import type { OpenClawConfig } from "openclaw/plugin-sdk/config-contracts";
|
|
import {
|
|
resolveRealtimeVoiceFastContextConsult,
|
|
type RealtimeVoiceFastContextConsultResult,
|
|
type RealtimeVoiceFastContextConfig,
|
|
} from "openclaw/plugin-sdk/realtime-voice";
|
|
|
|
type Logger = {
|
|
debug?: (message: string) => void;
|
|
};
|
|
|
|
// Voice-call labels for the SDK realtime fast-context resolver.
|
|
|
|
/** Resolve fast-context consult data using caller-oriented labels. */
|
|
export async function resolveRealtimeFastContextConsult(params: {
|
|
cfg: OpenClawConfig;
|
|
agentId: string;
|
|
sessionKey: string;
|
|
config: RealtimeVoiceFastContextConfig;
|
|
args: unknown;
|
|
logger: Logger;
|
|
}): Promise<RealtimeVoiceFastContextConsultResult> {
|
|
return await resolveRealtimeVoiceFastContextConsult({
|
|
...params,
|
|
labels: {
|
|
audienceLabel: "caller",
|
|
contextName: "OpenClaw memory or session context",
|
|
},
|
|
});
|
|
}
|