MCPcopy Index your code
hub / github.com/cursor/cookbook / buildPrompt

Function buildPrompt

sdk/coding-agent-cli/src/agent.ts:244–246  ·  view source on GitHub ↗
(prompt: string)

Source from the content-addressed store, hash-verified

242}
243
244export function buildPrompt(prompt: string) {
245 return [AGENT_INSTRUCTIONS, "", "User task:", prompt].join("\n")
246}
247
248export function formatModelLabel(model: ModelSelection) {
249 const params = model.params?.map((param) => param.value).filter(Boolean)

Callers 1

sendPromptMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected