Retrieve all tools
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 tools = await client.tools.list();
console.log(tools);
}
main();
[
{
"id": "<string>",
"name": "<string>",
"description": "<string>",
"parameters": {}
}
]
Successful operation
The response is of type object[]
.
Was this page helpful?
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 tools = await client.tools.list();
console.log(tools);
}
main();
[
{
"id": "<string>",
"name": "<string>",
"description": "<string>",
"parameters": {}
}
]
Retrieve all tools
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 tools = await client.tools.list();
console.log(tools);
}
main();
[
{
"id": "<string>",
"name": "<string>",
"description": "<string>",
"parameters": {}
}
]
Successful operation
The response is of type object[]
.
Was this page helpful?
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 tools = await client.tools.list();
console.log(tools);
}
main();
[
{
"id": "<string>",
"name": "<string>",
"description": "<string>",
"parameters": {}
}
]