New
- Now, you can use tags on prompts and/or folders to retrieve prompts using Maxim SDK. This gives more flexibility to fetch bulk of prompts related to workflow or any other tags.
Examples
- Filtering prompt using tags
const prompts = await maximClient.getPrompts(
new QueryBuilder()
.and()
.deploymentVar("Environment", "prod")
.tag("CustomerId", "123")
.build(),
);
- Filtering using folder
const folder = ...
const prompts = await maximClient.getPrompts(
new QueryBuilder()
.and()
.folder(folder.id)
.deploymentVar("Environment", "prod")
.build(),
);