mirror of
https://github.com/franalgaba/grimoire.git
synced 2026-09-14 20:26:31 +08:00
29 lines
534 B
Plaintext
29 lines
534 B
Plaintext
# Test: Advise statement with output schema
|
|
|
|
spell TestAdviseOutput {
|
|
|
|
version: "1.0.0"
|
|
description: "Advise statement returns an enum decision"
|
|
assets: []
|
|
|
|
advisors: {
|
|
reviewer: {
|
|
model: "anthropic:haiku"
|
|
skills: ["web-search"]
|
|
allowed_tools: ["web.run"]
|
|
|
|
}
|
|
}
|
|
on manual: {
|
|
decision = advise reviewer: "choose action" {
|
|
output: {
|
|
type: enum
|
|
values: ["hold", "buy", "sell"]
|
|
}
|
|
timeout: 10
|
|
fallback: "hold"
|
|
}
|
|
emit advised(decision=decision)
|
|
}
|
|
}
|