fix(mcp): preserve exact guided prompt context (#761)
Signed-off-by: RudyCelekli <47457359+rudycelekli@users.noreply.github.com>
This commit is contained in:
@@ -82,7 +82,11 @@ const argumentSchema = (
|
||||
argument: PromptArgumentContract,
|
||||
completion: PromptCompletionSource,
|
||||
): z.ZodType => {
|
||||
const value = z.string().trim().min(1).describe(argument.description);
|
||||
const value = z
|
||||
.string()
|
||||
.min(1)
|
||||
.refine((value) => value.trim().length > 0)
|
||||
.describe(argument.description);
|
||||
const kind = argument.completion;
|
||||
const completed =
|
||||
kind === undefined
|
||||
|
||||
Reference in New Issue
Block a user