(obj)
| 77686 | } |
| 77687 | function serializeChatRequestAssistantMessage(obj) { |
| 77688 | if (obj.content === void 0) { |
| 77689 | obj.content = null; |
| 77690 | } |
| 77691 | const { functionCall, toolCalls } = obj, rest = __rest(obj, ["functionCall", "toolCalls"]); |
| 77692 | return Object.assign(Object.assign(Object.assign({}, snakeCaseKeys(rest)), !toolCalls || toolCalls.length === 0 ? {} : { tool_calls: toolCalls }), functionCall ? { function_call: functionCall } : {}); |
| 77693 | } |
| 77694 | function serializeChatRequestToolMessage(obj) { |
| 77695 | return { |
| 77696 | role: obj["role"], |
| 77697 | content: obj["content"], |
no outgoing calls
no test coverage detected