mirror of
https://github.com/rcourtman/Pulse.git
synced 2026-12-03 02:24:21 +01:00
Let the configured model choose investigation steps within explicit budgets. Keep canonical planning, permissions and independent verification authoritative, and preserve streamed conclusions in conversation history. Expose recorded action outcomes so cached inventory cannot stand in for an approval or execution receipt. Retain full plan context and make the exact action review reachable from Assistant, including on narrow screens. Refs #1782
26 lines
941 B
Go
26 lines
941 B
Go
package chat
|
|
|
|
import "github.com/rcourtman/pulse-go-rewrite/internal/agentcapabilities"
|
|
|
|
// ToolKind classifies tool calls for canonical invocation permissions.
|
|
type ToolKind = agentcapabilities.ToolCallKind
|
|
|
|
const (
|
|
// ToolKindResolve - discovery/query tools that find resources
|
|
ToolKindResolve = agentcapabilities.ToolCallKindResolve
|
|
|
|
// ToolKindRead - read-only tools (logs, metrics, status, config)
|
|
ToolKindRead = agentcapabilities.ToolCallKindRead
|
|
|
|
// ToolKindWrite - mutating tools (restart, stop, start, delete, file write)
|
|
ToolKindWrite = agentcapabilities.ToolCallKindWrite
|
|
|
|
// ToolKindUserInput - interactive tools that request user input
|
|
ToolKindUserInput = agentcapabilities.ToolCallKindUserInput
|
|
)
|
|
|
|
// ClassifyToolCall classifies a tool call using the shared invocation contract.
|
|
func ClassifyToolCall(toolName string, args map[string]interface{}) ToolKind {
|
|
return agentcapabilities.ClassifyToolCall(toolName, args)
|
|
}
|