Theia API Documentation v1.68.0
    Preparing search index...

    Module @theia/ai-core


    theia-ext-logo

    ECLIPSE THEIA - AI CORE EXTENSION


    The @theia/ai-core extension serves as the basis of all AI integration in Theia. It manages the integration of language models and provides core concepts like agents, prompts, AI variables, and skills.

    Skills provide reusable instructions and domain knowledge for AI agents. A skill is a directory containing a SKILL.md file with YAML frontmatter (name, description) and markdown content.

    Skills are discovered from multiple locations, processed in priority order (first wins on duplicates):

    1. Workspace: .prompts/skills/ in the workspace root (project-specific skills)
    2. User-configured: Directories listed in ai-features.skills.skillDirectories preference
    3. Global: ~/.theia/skills/ (user defaults)

    Each skill must be in its own directory with the directory name matching the skill name:

    skills/
    ├── my-skill/
    │   └── SKILL.md
    └── another-skill/
        └── SKILL.md
    
    • Add {{skills}} to an agent's prompt to inject available skills as XML (name and description)
    • Agents can read full skill content using the getSkillFileContent tool with the skill name

    Enablement of the Theia AI feature is managed via the AI preferences, contributed by @theia/ai-core-ui. Either include @theia/ai-core-ui or bind the included preferences schemas in your Theia based application.

    "Theia" is a trademark of the Eclipse Foundation https://www.eclipse.org/theia

    Modules

    browser
    browser/agent-completion-notification-service
    browser/ai-activation-service
    browser/ai-command-handler-factory
    browser/ai-core-command-contribution
    browser/ai-core-frontend-application-contribution
    browser/ai-core-frontend-module
    browser/ai-settings-service
    browser/ai-variable-uri-label-provider
    browser/ai-view-contribution
    browser/file-variable-contribution
    browser/frontend-language-model-alias-registry
    browser/frontend-language-model-registry
    browser/frontend-language-model-service
    browser/frontend-prompt-customization-service
    browser/frontend-variable-service
    browser/open-editors-variable-contribution
    browser/os-notification-service
    browser/prompttemplate-contribution
    browser/prompttemplate-parser
    browser/skill-prompt-coordinator
    browser/skill-service
    browser/skills-variable-contribution
    browser/theia-variable-contribution
    browser/token-usage-frontend-service
    browser/token-usage-frontend-service-impl
    common
    common/agent
    common/agent-preferences
    common/agent-service
    common/agents-variable-contribution
    common/ai-core-preferences
    common/ai-variable-resource
    common/configurable-in-memory-resources
    common/language-model
    common/language-model-alias
    common/language-model-delegate
    common/language-model-interaction-model
    common/language-model-service
    common/language-model-util
    common/notification-types
    common/prompt-service
    common/prompt-service-util
    common/prompt-text
    common/prompt-variable-contribution
    common/protocol
    common/settings-service
    common/skill
    common/today-variable-contribution
    common/token-usage-service
    common/tool-invocation-registry
    common/variable-service
    node/ai-core-backend-module
    node/backend-language-model-registry
    node/language-model-frontend-delegate
    node/token-usage-service-impl