MCPcopy Create free account
hub / github.com/github/gh-aw / parseEditTool

Function parseEditTool

pkg/workflow/tools_parser.go:500–506  ·  view source on GitHub ↗

parseEditTool converts raw edit tool configuration

(val any)

Source from the content-addressed store, hash-verified

498
499// parseEditTool converts raw edit tool configuration
500func parseEditTool(val any) *EditToolConfig {
501 if boolVal, ok := val.(bool); ok && !boolVal {
502 return nil
503 }
504 // edit is either nil or an empty object
505 return &EditToolConfig{}
506}
507
508// parseAgenticWorkflowsTool converts raw agentic-workflows tool configuration
509func parseAgenticWorkflowsTool(val any) *AgenticWorkflowsToolConfig {

Callers 1

NewToolsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected