List all skills for the current project.
client.skills.list(SkillListParams { after, limit, order } query?, RequestOptionsoptions?): CursorPage<Skill { id, created_at, default_version, 4 more } >
GET/skills
List all skills for the current project.
import OpenAI from 'openai';
const client = new OpenAI({
apiKey: process.env['OPENAI_API_KEY'], // This is the default and can be omitted
});
// Automatically fetches more pages as needed.
for await (const skill of client.skills.list()) {
console.log(skill.id);
}{
"data": [
{
"id": "id",
"created_at": 0,
"default_version": "default_version",
"description": "description",
"latest_version": "latest_version",
"name": "name",
"object": "skill"
}
],
"first_id": "first_id",
"has_more": true,
"last_id": "last_id",
"object": "list"
}Returns Examples
{
"data": [
{
"id": "id",
"created_at": 0,
"default_version": "default_version",
"description": "description",
"latest_version": "latest_version",
"name": "name",
"object": "skill"
}
],
"first_id": "first_id",
"has_more": true,
"last_id": "last_id",
"object": "list"
}