MCPcopy Create free account
hub / github.com/diillson/chatcli / runChatGraphView

Method runChatGraphView

cli/chat_graphview.go:107–113  ·  view source on GitHub ↗

runChatGraphView executes one @graphview call through the same plugin the agent uses. Errors come back as a tool-result string so the model can correct the call instead of the turn failing.

(ctx context.Context, argsJSON string)

Source from the content-addressed store, hash-verified

105// agent uses. Errors come back as a tool-result string so the model can correct
106// the call instead of the turn failing.
107func (cli *ChatCLI) runChatGraphView(ctx context.Context, argsJSON string) string {
108 out, err := plugins.NewBuiltinGraphViewPlugin().Execute(ctx, []string{argsJSON})
109 if err != nil {
110 return "graphview error: " + err.Error()
111 }
112 return out
113}
114
115// appendGraphViewRound folds the graph render into the conversation so the model
116// can produce a short natural-language confirmation as its final answer.

Callers 3

TestRunChatGraphViewFunction · 0.95
executeChatAskNativeMethod · 0.95
executeChatAskXMLMethod · 0.95

Calls 3

ExecuteMethod · 0.65
ErrorMethod · 0.65

Tested by 1

TestRunChatGraphViewFunction · 0.76