MCPcopy Create free account
hub / github.com/Rfym21/Qwen2API / isInjectedSystemPart

Function isInjectedSystemPart

src/controllers/cli.chat.js:93–102  ·  view source on GitHub ↗
(part)

Source from the content-addressed store, hash-verified

91 return value
92}
93
94function isInjectedSystemPart(part) {
95 return Boolean(
96 part &&
97 typeof part === 'object' &&
98 part.type === 'text' &&
99 part.cache_control &&
100 part.cache_control.type === 'ephemeral' &&
101 typeof part.text === 'string'
102 )
103}
104
105function makeCliTextPart(text) {

Callers 1

appendCliSystemContentFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected