import PromptFoundry from '@prompt-foundry/typescript-sdk';
const client = new PromptFoundry({
apiKey: process.env['PROMPT_FOUNDRY_API_KEY'], // This is the default and can be omitted
});
async function main() {
const tool = await client.tools.update('1212121', {
description: 'description',
name: 'name',
parameters: { foo: 'bar' },
});
console.log(tool.id);
}
main();
Update the configuration of an existing tool by providing its ID and new data.
PUT
/
sdk
/
v1
/
tools
/
{id}
JavaScript
Copy
import PromptFoundry from '@prompt-foundry/typescript-sdk';
const client = new PromptFoundry({
apiKey: process.env['PROMPT_FOUNDRY_API_KEY'], // This is the default and can be omitted
});
async function main() {
const tool = await client.tools.update('1212121', {
description: 'description',
name: 'name',
parameters: { foo: 'bar' },
});
console.log(tool.id);
}
main();