Skip to main content

Skills

List Skills

Returns a list of skills. Skills are sorted by creation date, with the most recently created skills appearing first.
from orq_ai_sdk import Orq
import os

with Orq(
    api_key=os.getenv("ORQ_API_KEY", ""),
) as orq:

    res = orq.skills.list()

    # Handle response
    print(res)

Create a Skill

Skills are modular instructions you can use to codify processes and conventions
from orq_ai_sdk import Orq
import os

with Orq(
    api_key=os.getenv("ORQ_API_KEY", ""),
) as orq:

    res = orq.skills.create()

    # Handle response
    print(res)

Retrieve a Skill

Retrieves an existing skill by its unique skill ID or its display name (display names are unique within a workspace).
from orq_ai_sdk import Orq
import os

with Orq(
    api_key=os.getenv("ORQ_API_KEY", ""),
) as orq:

    res = orq.skills.get(skill_id="<id>")

    # Handle response
    print(res)

Delete a Skill

Delete a skill
from orq_ai_sdk import Orq
import os

with Orq(
    api_key=os.getenv("ORQ_API_KEY", ""),
) as orq:

    res = orq.skills.delete(skill_id="<id>")

    # Handle response
    print(res)

Update a Skill

Updates the specified skill by setting the values of the parameters passed.
from orq_ai_sdk import Orq
import os

with Orq(
    api_key=os.getenv("ORQ_API_KEY", ""),
) as orq:

    res = orq.skills.update(skill_id_param="<value>")

    # Handle response
    print(res)