- Added support for reading files from workspace URIs in the delivery process, allowing for more flexible attachment management. - Introduced a new `convertWorkspaceAttachment` function to handle workspace-based file retrieval and integration into messenger attachments. - Updated the `AgentCaller` to include execution mode in the context, improving task execution tracking. - Enhanced the `RunDelivery` method to utilize workspace manifests for delivery input, reducing token usage and improving efficiency. - Implemented locale handling in various request structures to support multi-language capabilities in user interfaces.
60 lines
1.1 KiB
YAML
60 lines
1.1 KiB
YAML
workspace: |
|
|
## Workspace
|
|
|
|
Execution directory: {{.ExecDir}}
|
|
|
|
### Available Files
|
|
{{range .Files}}
|
|
- {{.Path}} — {{.Desc}}
|
|
{{- end}}
|
|
|
|
### Your Task Directory
|
|
|
|
Write any output files to: {{.TaskDir}}
|
|
|
|
context: |
|
|
## Execution Context
|
|
|
|
Goals: {{.Goals}}
|
|
{{- if .Locale}}
|
|
Language: {{.Locale}}
|
|
{{- end}}
|
|
Mode: automated-pipeline
|
|
{{- if .FailureWarning}}
|
|
|
|
⚠ {{.FailureWarning}}
|
|
{{- end}}
|
|
{{if .CompletedTasks}}
|
|
### Completed Tasks
|
|
{{range .CompletedTasks}}
|
|
{{.Seq}}. [{{.ID}}] {{.Description}} ({{.ExecutorType}}: {{.Executor}}) ✓
|
|
Summary: {{.Summary}}
|
|
{{- if .KeyOutputs}}
|
|
Key outputs: {{.KeyOutputs}}
|
|
{{- end}}
|
|
{{- if .HasFiles}}
|
|
Files: {{.Files}}
|
|
{{- end}}
|
|
{{end}}
|
|
{{- end}}
|
|
{{- if .FailedTasks}}
|
|
### Failed Tasks
|
|
{{range .FailedTasks}}
|
|
{{.Seq}}. [{{.ID}}] {{.Description}} ✗
|
|
Error: {{.Error}}
|
|
{{end}}
|
|
{{- end}}
|
|
### Current Task
|
|
|
|
{{.CurrentOrder}}. [{{.CurrentID}}] {{.CurrentDesc}} ({{.CurrentType}}: {{.CurrentExec}})
|
|
|
|
instructions: |
|
|
## Task Instructions
|
|
|
|
{{.TaskInstructions}}
|
|
{{- if .ExpectedOutput}}
|
|
|
|
### Expected Output
|
|
|
|
{{.ExpectedOutput}}
|
|
{{- end}}
|