MCPcopy Create free account
hub / github.com/microsoft/TypeChat / createRequestPrompt

Method createRequestPrompt

typescript/src/typechat.ts:34–34  ·  view source on GitHub ↗

* Creates an AI language model prompt from the given request. This function is called by `completeAndValidate` * to obtain the prompt. An application can assign a new function to provide a different prompt. * @param request The natural language request. * @returns A prompt that combin

(request: string)

Source from the content-addressed store, hash-verified

32 * @returns A prompt that combines the request with the schema and type name of the underlying validator.
33 */
34 createRequestPrompt(request: string): PromptContent;
35 /**
36 * Creates a repair prompt to append to an original prompt/response in order to repair a JSON object that
37 * failed to validate. This function is called by `completeAndValidate` when `attemptRepair` is true and the

Callers 1

translateFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected