MCPcopy Index your code
hub / github.com/di-sukharev/opencommit / serializeChatRequestMessageUnion

Function serializeChatRequestMessageUnion

out/cli.cjs:77695–77706  ·  view source on GitHub ↗
(obj)

Source from the content-addressed store, hash-verified

77693}
77694function serializeChatRequestToolMessage(obj) {
77695 return {
77696 role: obj["role"],
77697 content: obj["content"],
77698 tool_call_id: obj["toolCallId"]
77699 };
77700}
77701function serializeChatRequestMessageUnion(obj) {
77702 switch (obj.role) {
77703 case "user":
77704 return serializeChatRequestUserMessage(obj);
77705 case "assistant":
77706 return serializeChatRequestAssistantMessage(obj);
77707 case "tool":
77708 return serializeChatRequestToolMessage(obj);
77709 default:

Callers 1

_getChatCompletionsSendFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…