MCPcopy
hub / github.com/di-sukharev/opencommit / isToolMessage

Function isToolMessage

out/cli.cjs:81504–81506  ·  view source on GitHub ↗
(message)

Source from the content-addressed store, hash-verified

81502
81503// node_modules/openai/lib/chatCompletionUtils.mjs
81504var isAssistantMessage = (message) => {
81505 return message?.role === "assistant";
81506};
81507var isFunctionMessage = (message) => {
81508 return message?.role === "function";
81509};

Callers 2

_addMessageMethod · 0.85
cli.cjsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…