You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+12-12Lines changed: 12 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -290,11 +290,11 @@ seclab-taskflow-agent:
290
290
filetype: taskflow
291
291
```
292
292
293
-
The `version` number in the header is currently 1. It means that the
294
-
file uses version 1 of the seclab-taskflow-agent syntax. If we ever need
293
+
The `version` in the header is currently `"1.0"`. It means that the
294
+
file uses version 1.0 of the seclab-taskflow-agent syntax. If we ever need
295
295
to make a major change to the syntax, then we'll update the version number.
296
296
This will hopefully enable us to make changes without breaking backwards
297
-
compatibility. Version can be specified as an integer, float, or string.
297
+
compatibility. The version should be specified as a string (e.g. `"1.0"`).
298
298
299
299
The `filetype` determines whether the file defines a personality, toolbox, etc.
300
300
This means that different types of files can be stored in the same directory.
@@ -318,7 +318,7 @@ Example:
318
318
```yaml
319
319
# personalities define the system prompt level directives for this Agent
320
320
seclab-taskflow-agent:
321
-
version: 1
321
+
version: "1.0"
322
322
filetype: personality
323
323
324
324
personality: |
@@ -385,7 +385,7 @@ For example, to start a stdio MCP server that is implemented in a python file:
385
385
```yaml
386
386
# stdio mcp server configuration
387
387
seclab-taskflow-agent:
388
-
version: 1
388
+
version: "1.0"
389
389
filetype: toolbox
390
390
391
391
server_params:
@@ -433,7 +433,7 @@ Example:
433
433
434
434
```yaml
435
435
seclab-taskflow-agent:
436
-
version: 1
436
+
version: "1.0"
437
437
filetype: taskflow
438
438
439
439
taskflow:
@@ -499,7 +499,7 @@ taskflow:
499
499
agents:
500
500
- seclab_taskflow_agent.personalities.assistant
501
501
user_prompt: |
502
-
What kind of fruit is {{ RESULT }}?
502
+
What kind of fruit is {{ result }}?
503
503
```
504
504
505
505
Taskflows support [Agent handoffs](https://openai.github.io/openai-agents-python/handoffs/). Handoffs are useful for implementing triage patterns where the primary Agent can decide to handoff a task to any subsequent Agents in the `Agents` list.
@@ -517,18 +517,18 @@ hatch run main -t examples.taskflows.CVE-2023-2283
517
517
518
518
Prompts are configured through YAML files of `filetype` `prompt`. They define a reusable prompt that can be referenced in `taskflow` files.
519
519
520
-
They contain only one field, the `prompt` field, which is used to replace any `{{ PROMPT_<import-path> }}` template parameter in a taskflow. For example, the following `prompt`.
520
+
They contain only one field, the `prompt` field. Reusable prompts can be referenced in tasks using Jinja2's `{% include '<import-path>' %}` directive. For example, the following `prompt`.
521
521
522
522
```yaml
523
523
seclab-taskflow-agent:
524
-
version: 1
524
+
version: "1.0"
525
525
filetype: prompt
526
526
527
527
prompt: |
528
528
Tell me more about bananas as well.
529
529
```
530
530
531
-
would replace any `{{ PROMPT_examples.prompts.example_prompt }}` template parameter found in the `user_prompt` section in a taskflow:
531
+
can be referenced from the `user_prompt` section in a taskflow:
532
532
533
533
```yaml
534
534
- task:
@@ -537,7 +537,7 @@ would replace any `{{ PROMPT_examples.prompts.example_prompt }}` template parame
537
537
user_prompt: |
538
538
Tell me more about apples.
539
539
540
-
{{ PROMPTS_examples.prompts.example_prompt }}
540
+
{% include 'examples.prompts.example_prompt' %}
541
541
```
542
542
543
543
becomes:
@@ -558,7 +558,7 @@ Model configs are configured through YAML files of `filetype` `model_config`. Th
0 commit comments