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

Function isFunctionMessage

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

Source from the content-addressed store, hash-verified

81499function isRunnableFunctionWithParse(fn) {
81500 return typeof fn.parse === "function";
81501}
81502
81503// node_modules/openai/lib/chatCompletionUtils.mjs
81504var isAssistantMessage = (message) => {
81505 return message?.role === "assistant";
81506};

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…