summaryrefslogtreecommitdiff
path: root/makima/src/llm/contract_tools.rs
diff options
context:
space:
mode:
authorsoryu <soryu@soryu.co>2026-01-18 23:42:27 +0000
committersoryu <soryu@soryu.co>2026-01-19 00:14:29 +0000
commitb64eddc8c2f250cdcbacae18cce107bf4c86f9f4 (patch)
tree1644184fca27306cf72f25f57cedd6c53ae69955 /makima/src/llm/contract_tools.rs
parentb3eb58d50eea5b235a1c33d5c8787dc81064c46b (diff)
downloadsoryu-b64eddc8c2f250cdcbacae18cce107bf4c86f9f4.tar.gz
soryu-b64eddc8c2f250cdcbacae18cce107bf4c86f9f4.zip
Use formatting in question in output
Diffstat (limited to 'makima/src/llm/contract_tools.rs')
-rw-r--r--makima/src/llm/contract_tools.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/makima/src/llm/contract_tools.rs b/makima/src/llm/contract_tools.rs
index 07de1fe..855a2fe 100644
--- a/makima/src/llm/contract_tools.rs
+++ b/makima/src/llm/contract_tools.rs
@@ -376,7 +376,7 @@ pub static CONTRACT_TOOLS: once_cell::sync::Lazy<Vec<Tool>> = once_cell::sync::L
// =============================================================================
Tool {
name: "ask_user".to_string(),
- description: "Ask the user one or more questions. Use this when you need clarification, want to offer choices, or need user input before proceeding.".to_string(),
+ description: "Ask the user one or more questions. Use this when you need clarification, want to offer choices, or need user input before proceeding. Questions can be single-select (user picks one option) or multi-select (user can pick multiple options). The question text supports markdown formatting.".to_string(),
parameters: json!({
"type": "object",
"properties": {
@@ -392,7 +392,7 @@ pub static CONTRACT_TOOLS: once_cell::sync::Lazy<Vec<Tool>> = once_cell::sync::L
},
"question": {
"type": "string",
- "description": "The question to ask the user"
+ "description": "The question to ask the user. Supports markdown formatting (bold, code, lists, etc.)"
},
"options": {
"type": "array",
@@ -401,11 +401,11 @@ pub static CONTRACT_TOOLS: once_cell::sync::Lazy<Vec<Tool>> = once_cell::sync::L
},
"allowMultiple": {
"type": "boolean",
- "description": "If true, user can select multiple options"
+ "description": "If true, user can select multiple options (multi-select). If false or omitted, user selects exactly one option (single-select). Default: false"
},
"allowCustom": {
"type": "boolean",
- "description": "If true, user can provide a custom answer"
+ "description": "If true, user can provide a custom text answer instead of selecting from options. Default: true"
}
},
"required": ["id", "question", "options"]