Skip to content

Commit fdd4338

Browse files
authored
Merge pull request #290 from dgageot/fix-desc
Make sure all examples have a description
2 parents 6d6a49f + a11d2b4 commit fdd4338

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

examples/shared-todo.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ version: "2"
44
agents:
55
root:
66
model: gpt
7+
description: An agent to demonstrate how to setup a shared todo.
78
instruction: |
89
Here is your workflow:
910
- Transfer to the `first` agent, the task should be: create a todo

pkg/config/examples_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ func TestParseExamples(t *testing.T) {
3232

3333
require.NoError(t, err)
3434
require.Equal(t, "2", cfg.Version, "Version should be 2 in %s", file)
35+
require.NotEmpty(t, cfg.Agents["root"].Description, "Description should not be empty in %s", file)
3536
require.NotEmpty(t, cfg.Agents["root"].Instruction, "Instruction should not be empty in %s", file)
3637
})
3738
}

0 commit comments

Comments
 (0)