mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 12:30:44 +00:00
fix(agents): mediate async media completions
This commit is contained in:
@@ -91,8 +91,9 @@ reply model.
|
||||
For async tools, OpenClaw submits the request to the provider, returns a task
|
||||
id immediately, and tracks the job in the task ledger. The agent continues
|
||||
responding to other messages while the job runs. When the provider finishes,
|
||||
OpenClaw wakes the agent so it can post the finished media back into the
|
||||
original channel.
|
||||
OpenClaw wakes the agent with the generated media paths so it can tell the
|
||||
user and, when required by source-delivery policy, relay the result through
|
||||
the message tool.
|
||||
|
||||
## Speech-to-text and Voice Call
|
||||
|
||||
|
||||
@@ -14,8 +14,9 @@ MiniMax, and workflow-configured ComfyUI today.
|
||||
|
||||
For session-backed agent runs, OpenClaw starts music generation as a
|
||||
background task, tracks it in the task ledger, then wakes the agent again
|
||||
when the track is ready so the agent can post the finished audio back into
|
||||
the original channel.
|
||||
when the track is ready so the agent can tell the user and attach the
|
||||
finished audio. In group/channel chats that use message-tool-only visible
|
||||
delivery, the agent relays the result through the message tool.
|
||||
|
||||
<Note>
|
||||
The built-in shared tool only appears when at least one music-generation
|
||||
|
||||
@@ -62,7 +62,9 @@ session:
|
||||
1. OpenClaw submits the request to the provider and immediately returns a task id.
|
||||
2. The provider processes the job in the background (typically 30 seconds to 5 minutes depending on the provider and resolution).
|
||||
3. When the video is ready, OpenClaw wakes the same session with an internal completion event.
|
||||
4. The agent posts the finished video back into the original conversation.
|
||||
4. The agent tells the user and attaches the finished video. In group/channel
|
||||
chats that use message-tool-only visible delivery, the agent relays the
|
||||
result through the message tool instead of OpenClaw posting it directly.
|
||||
|
||||
While a job is in flight, duplicate `video_generate` calls in the same
|
||||
session return the current task status instead of starting another
|
||||
|
||||
Reference in New Issue
Block a user