Skip to content

Cannot import dedicated session event data types in v0.3.0 #1156

Description

@JasonYeMSFT

I tried to import ToolExecutionStartData but it seems this type is not exported by the package.

// In a project where node_modules is at the root and src/index.ts has the application code
// Doesn't work
import { ToolExecutionStartData } from "@github/copilot-sdk"
// Works
import { ToolExecutionStartData } from "../node_modules/@github/copilot-sdk/dist/generated/session-events";

The v0.3.0 release notes says this "but each event now has a corresponding *Event interface and *Data type that you can import and use directly".

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions