mirror of
https://github.com/Ed1s0nZ/CyberStrikeAI.git
synced 2026-09-20 16:37:19 +02:00
feat: add configurable tool call blocking and monitoring
This commit is contained in:
@@ -190,6 +190,9 @@ func formatExecutionForModel(exec *ToolExecution, opts executionFormatOptions) s
|
||||
if exec.Result != nil {
|
||||
payload["result"] = ToolResultPlainText(exec.Result)
|
||||
payload["is_error"] = exec.Result.IsError
|
||||
if exec.Result.Blocked {
|
||||
payload["blocked"] = true
|
||||
}
|
||||
}
|
||||
if opts.includePartialOutput && exec.PartialOutput != "" {
|
||||
partial := tailStringBytes(exec.PartialOutput, opts.partialMaxBytes)
|
||||
|
||||
Reference in New Issue
Block a user