MCPcopy Create free account
hub / github.com/anysphere/priompt / functionPromptToString

Function functionPromptToString

priompt/src/lib.ts:35–39  ·  view source on GitHub ↗
(prompt: FunctionPrompt)

Source from the content-addressed store, hash-verified

33 }).join('\n');
34}
35export function functionPromptToString(prompt: FunctionPrompt): string {
36 return prompt.functions.map((func) => {
37 JSON.stringify(func);
38 }).join('\n');
39}
40const OPENAI_SPECIAL_TOKENS = [
41 "<|im_start|>",
42 "<|im_sep|>",

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected