Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/getting-started.md
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ Create `main.py`:
```python
import asyncio
from copilot import CopilotClient
from copilot.session import PermissionHandler
from copilot.types import PermissionHandler
Copy link

Copilot AI Mar 27, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

copilot.types does not appear to exist in the Python package in this repo (PermissionHandler is defined in copilot.session). As written, this getting-started example will raise ModuleNotFoundError: No module named 'copilot.types'. Update the import back to from copilot.session import PermissionHandler (or add/re-export a copilot.types module if that’s the intended new public API) and keep the other Python snippets in this doc consistent.

Suggested change
from copilot.types import PermissionHandler
from copilot.session import PermissionHandler

Copilot uses AI. Check for mistakes.
Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok - but the current github-copilot-sdk (github-copilot-sdk 0.2.0) places PermissionHandler inside copilot.types. And github-copilot-sdk 0.2.0 is the version a user would get when following the tutorial. (agreed that we woudl also need to change all other imports in the tutorial for consistency).


async def main():
client = CopilotClient()
Expand Down
Loading