Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions genkit-tools/common/src/server/router.ts
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,7 @@ export const TOOLS_SERVER_ROUTER = (runner: Runner) =>
const frontmatter: PromptFrontmatter = {
model: input.model,
config: input.config,
tools: input.toolNames,
};
return fromMessages(frontmatter, input.messages);
}),
Expand Down
1 change: 1 addition & 0 deletions genkit-tools/common/src/types/apis.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ export const CreatePromptRequestSchema = z.object({
model: z.string(),
messages: z.array(MessageSchema),
config: GenerationCommonConfigSchema.passthrough().optional(),
toolNames: z.array(z.string()).optional(),
});

export type CreatePromptRequest = z.infer<typeof CreatePromptRequestSchema>;
Expand Down