glrs
    Preparing search index...

    Module SDK

    Compose the provider-neutral core into another host.

    Most users need the glrs CLI, not this module. Use the SDK when embedding sessions, providers, and extensions in another application.

    import {
    createAgentCore,
    createCodingAgent,
    createProviderRegistry,
    jsonSessionRepository,
    } from "@glrs-dev/glrs";

    const runtime = createAgentCore({
    session,
    runTurn,
    reloadExtensions,
    });
    const agent = createCodingAgent({
    runtime,
    sessionRepository: jsonSessionRepository,
    providers: createProviderRegistry(),
    });
    AgentCore
    CodingAgent
    CodingAgentDependencies
    ModelProvider
    ProviderAdapter
    ProviderRegistry
    Session
    SessionEvent
    SessionRepository
    Turn
    jsonSessionRepository
    createAgentCore
    createCodingAgent
    createProviderRegistry