Compare commits
7
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
3bf100fd9b | ||
|
|
fc9620e05f | ||
|
|
ef14bda11f | ||
|
|
bf5b210bd1 | ||
|
|
a75d359ade | ||
|
|
1051dc5ae5 | ||
|
|
bf5b389d55 |
@@ -47,6 +47,9 @@ type Config struct {
|
||||
Trace func(name string, attrs map[string]string) func()
|
||||
CodeOrchestration bool
|
||||
Ask func(ctx context.Context, question string) (string, error)
|
||||
// PermissionAsk 把内核钩子的 ask 决策转交宿主裁决(nil = 内核保持
|
||||
// ask 按拒绝处理的旧行为)。经 nativexec.GateOptions 透传。
|
||||
PermissionAsk func(ctx context.Context, call llm.ToolCall) runtime.AskVerdict
|
||||
}
|
||||
|
||||
// Register 把 "agent-native" 工厂注册进解析器。
|
||||
@@ -92,7 +95,7 @@ func buildOptions(cfg Config, role squad.RoleSpec) (nativexec.Options, error) {
|
||||
GateOptions: nativexec.GateOptions{
|
||||
BeforeTool: cfg.BeforeTool, AfterTool: cfg.AfterTool, Stop: cfg.Stop,
|
||||
Reminders: cfg.Reminders, RepeatGuard: cfg.RepeatGuard, Hooks: cfg.Hooks,
|
||||
Ask: cfg.Ask,
|
||||
Ask: cfg.Ask, PermissionAsk: cfg.PermissionAsk,
|
||||
},
|
||||
}
|
||||
if cfg.Client != nil {
|
||||
|
||||
Vendored
+1
-1
Submodule deps/agent-native updated: 3a110a728c...c9c2f23990
Reference in New Issue
Block a user