fix(tools): switch session.prompt to promptAsync in delegate-task and call-omo-agent
This commit is contained in:
@@ -220,7 +220,7 @@ Original error: ${createResult.error}`
|
||||
log(`[call_omo_agent] Prompt text:`, args.prompt.substring(0, 100))
|
||||
|
||||
try {
|
||||
await ctx.client.session.promptAsync({
|
||||
await (ctx.client.session as any).promptAsync({
|
||||
path: { id: sessionID },
|
||||
body: {
|
||||
agent: args.subagent_type,
|
||||
|
||||
@@ -211,7 +211,7 @@ export async function executeSyncContinuation(
|
||||
: undefined
|
||||
}
|
||||
|
||||
await client.session.promptAsync({
|
||||
await (client.session as any).promptAsync({
|
||||
path: { id: args.session_id! },
|
||||
body: {
|
||||
...(resumeAgent !== undefined ? { agent: resumeAgent } : {}),
|
||||
|
||||
Reference in New Issue
Block a user