返回 JoyAI-Echo
strings.yaml
1 # PE base strings for the director workflow (byte-exact snapshot of the
2 # hardcoded prompts extracted from nanobot/agent/tools/director.py).
3 # This is the base layer: experimental PE sets overlay individual keys.
4 # `{name}` placeholders are filled via str.format at call time.
5
6 director:
7 shot_caption:
8 description: 'The complete, ready-to-render shot caption for the JoyAI-Echo joint audio-video model — one single continuous paragraph in the user-requested caption language, otherwise the primary language of the user conversation, produced in full on the agent side and passed to the backend verbatim as its sole text input. Chinese means the full caption is Chinese, including descriptions and dialogue. The complete caption across all internal shotN segments should target 1500–1800 Unicode characters and must contain fewer than 2000 characters total (maximum 1999). Follow the active shot-prompt-writer guidance (call get_guidance(topic="shot-prompt-writer")): give an ID its detailed character anchors only at its first outer-shot appearance and compact continuity anchors later. In a speaking action/dialogue passage, place "ID_X says" after the pre-speech action and before the post-speech action, not at the end of the completed action and not in any fixed shotN segment. Keep expression/action/style/camera/background/sound/music in order, and use the internal-cut "This video has N shots." / "shotN:" syntax only when the shot contains internal cuts. Output the caption text only — no field names, no JSON, no markdown.'
9 tool:
10 confirm_fact:
11 description: Re-check the active work, refresh fact.md, and return structured progress information.
12 create_shot_prompt:
13 description: 'Create or update one shot by storing its complete, ready-to-render caption, and sync the active work progress. Use this instead of editing shot JSON manually. The caption is a single continuous paragraph in the user-requested caption language, otherwise the primary language of the user conversation; a Chinese caption uses Chinese throughout. Across all internal shotN segments combined, target 1500–1800 Unicode characters and use fewer than 2000 characters total (maximum 1999). Follow the active shot-prompt-writer guidance: an ID receives detailed character anchors only at its first outer-shot appearance and compact continuity anchors later. In a speaking action/dialogue passage, place "ID_X says" between the pre-speech and post-speech actions, never after the whole completed action and never in a fixed shotN segment. Then continue with style, camera, background, sound, and music; use the internal-cut "This video has N shots." / "shotN:" syntax only when the shot has internal cuts.'
14 generate_echo_shot:
15 description: Queue one shot plus the selected logical reference shot IDs with the Echo generator. The tool reads the current shot prompt from the director workspace; the completed result arrives through the configured callback. reference_shot_ids must include at least one earlier shot unless the shot is the very first shot or introduces a completely new scene with entirely new characters having no visual overlap with any prior shot.
16 get_director_job:
17 description: Inspect a previously created director job by ID.
18 get_fact:
19 description: Read fact.md for the active director work.
20 get_guidance:
21 description: Load a reference guidance document for story/shot writing quality. Call this instead of reading files by path. Topics include 'shot-sequence-patterns' (structural/continuity guidance for planning) and 'shot-prompt-writer' (the single-shot caption-writer contract for create_shot_prompt).
22 get_shot:
23 description: Read the full JSON payload for a specific shot.
24 get_story:
25 description: Read the current story markdown and the structured story profile for the active work.
26 get_workplace_status:
27 description: Get the current work status, progress, stage, goal, shot summaries, and recent jobs.
28 merge_shot:
29 description: Submit an asynchronous HTTP merge request for generated shots. The completed result arrives through the configured callback.
30 review_shot:
31 description: Record a human or VLM review result for one generated shot. Use verdict='accept' to approve a shot, or verdict='revise' with feedback to reopen it for prompt updates.
32 set_director_goal:
33 description: Set or update the shot-count, duration, and generation mode for the active director work.
34 set_shot_references:
35 description: Plan Echo reference shot IDs for one shot before user-triggered generation. This stores references on the shot without starting video generation.
36 start_director:
37 description: Start or resume a director work. Creates the workspace state files and remembers the active work for the current session.
38 write_story:
39 description: Write the current story and structured story profile for the active director work. When story_profile is provided it must include summary and a non-empty beats array.
40 workflow_gate_error: 'Error: This workflow step ({operation}) is blocked in chat turns and must be triggered from the right workplace panel. After screenplay and shot_count are confirmed in chat, tell the user to click the 「下一步」 button there — do not mention a separate confirm-screenplay button.'
41 guidance:
42 not_found: 'Error: no guidance document found for topic ''{topic}''. Available topics: {available}.'
43 next_action:
44 storyboard_ready: Screenplay and shot_count are confirmed. Tell the user to click the 「下一步」 button in the right workplace panel to preview the storyboard script.
45 start_generation: Tell the user to click the 「下一步」 button in the right workplace panel to start video generation, or review generated shots in the workplace panel.
46 review_complete: Review is complete. Tell the user to continue via the 「下一步」 button in the right workplace panel.
47 merge_ready: Tell the user to click the 「下一步」 button in the right workplace panel to merge the generated shots.
48 work_complete: The current work is complete.
49 callback:
50 generate_echo_shot:
51 completed: 'Director remote result: generate_echo_shot completed for work `{work_id}` on `{shot_key}`. Result URL: {result_url}. Tell the user the shot is ready in the workplace panel for review or acceptance.'
52 failed: 'Director remote result: generate_echo_shot failed for work `{work_id}` on `{shot_key}`. Error: {error}. Tell the user generation failed and they can revise the shot from the workplace panel.'
53 merge_shot:
54 completed: 'Director remote result: merge_shot completed for work `{work_id}`. Final video: {final_output}. Return this final result to the user.'
55 failed: 'Director remote result: merge_shot failed for work `{work_id}` on job `{job_id}`. Error: {error}. Investigate the merge inputs and tell the user what happened.'
56
56 lines YAML