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