Skip to content

Commit c80b585

Browse files
authored
Merge pull request #453 from dgageot/demo-cloud-mode
Demo for Code Mode
2 parents 72a6047 + 26a74fc commit c80b585

2 files changed

Lines changed: 18 additions & 0 deletions

File tree

cagent-schema.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,10 @@
6262
"type": "string",
6363
"description": "Instructions for the agent"
6464
},
65+
"code_mode_tools": {
66+
"type": "boolean",
67+
"description": "Enable Code Mode for tools"
68+
},
6569
"sub_agents": {
6670
"type": "array",
6771
"description": "List of sub-agents",

examples/code_mode.yaml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
#!/usr/bin/env cagent run
2+
version: "2"
3+
4+
agents:
5+
root:
6+
model: anthropic/claude-sonnet-4-5
7+
description: Demonstrates the use of Code Mode with tools
8+
instruction: Use your tool to help the user with their github requests.
9+
code_mode_tools: true
10+
commands:
11+
demo: How many issues in docker/cagent have a number that is prime?
12+
toolsets:
13+
- type: mcp
14+
ref: docker:github-official

0 commit comments

Comments
 (0)