Sprint 66g: template architecture -- company templates only, starter_pack, rename to lower_case_with_underscores
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
75
templates/input_from_user.yml
Normal file
75
templates/input_from_user.yml
Normal file
@@ -0,0 +1,75 @@
|
||||
name: InputFromUser
|
||||
description: "Crimson Leaf intake — translate operator intent into structured work for Edgar."
|
||||
debug: true
|
||||
system: agent_prompt
|
||||
|
||||
sections:
|
||||
- scene
|
||||
- sender_identity
|
||||
- pending_human_tasks
|
||||
- project
|
||||
- history
|
||||
- message
|
||||
- rejection_feedback
|
||||
- instructions
|
||||
|
||||
steps:
|
||||
- type: think
|
||||
scene: |
|
||||
You are the named agent receiving a message from the operator via the interface.
|
||||
A single message may contain multiple instructions or subjects at once.
|
||||
hint: |
|
||||
Your ONLY job is to route this message to the right place.
|
||||
You do NOT decide what work to do. You do NOT pick templates. You do NOT assign agents.
|
||||
Edgar is the CEO. He will receive this message and decide the workflow.
|
||||
|
||||
Classify the message into ONE of these categories:
|
||||
|
||||
a) WORK REQUEST — the operator wants something done (plan, hire, create company, research, etc.)
|
||||
Create ONE task for Edgar with task_type "planning". Include the full message as the description.
|
||||
|
||||
b) SIMPLE QUESTION / CHAT — just a question or conversational remark.
|
||||
Reply directly. Do NOT create a task.
|
||||
|
||||
c) STATUS QUERY — operator asks what is happening, what is pending, what is done.
|
||||
Emit status_query.
|
||||
|
||||
d) PROJECT FREEZE / RESUME — operator says pause/freeze/hold or resume/thaw.
|
||||
Emit freeze_project or resume_project.
|
||||
|
||||
e) HUMAN TASK — operator says a person needs to do something manually.
|
||||
Emit human_action.
|
||||
|
||||
f) HUMAN TASK RESOLUTION — operator says "I did X", "here is Y".
|
||||
Emit resolve_human_task.
|
||||
|
||||
CRITICAL: For category (a), ALWAYS assign to Edgar with task_type "planning".
|
||||
Do NOT try to decide the right agent, template, or workflow yourself.
|
||||
Edgar is the CEO. He decides. You route.
|
||||
|
||||
OUTPUT FORMAT: Your response IS the user-facing reply. Write it directly.
|
||||
- For work requests: "Task Created: [task name]"
|
||||
- For questions/chat: answer directly
|
||||
- For status queries, freeze/resume, human tasks: brief one-line confirmation
|
||||
Do NOT use [did: ...] notation. Do NOT add explanations. One sentence per action.
|
||||
|
||||
- type: package
|
||||
packet_type: IntakeResponse
|
||||
schema:
|
||||
actions:
|
||||
- type: "create_task|save_nugget|status_query|human_action|resolve_human_task|freeze_project|resume_project"
|
||||
task_name: "string — short name (create_task only)"
|
||||
description: "string — the operator's full message verbatim, plus project context (create_task only)"
|
||||
agents:
|
||||
- "Edgar"
|
||||
task_type: "planning"
|
||||
note: "string — insight to store (save_nugget only)"
|
||||
subject: "string — what to look up (status_query only)"
|
||||
user_name: "string — sender name (status_query briefing only)"
|
||||
task_id: "string — task UUID (resolve_human_task only)"
|
||||
duration: "string — e.g. '2w' (freeze_project only)"
|
||||
|
||||
- type: reply
|
||||
target: discussion
|
||||
adjudication:
|
||||
enabled: false
|
||||
Reference in New Issue
Block a user