Skip to content

Conversation

@leavesster
Copy link
Contributor

Summary

  • Add missing TypedDict exports to context.py __all__
  • Exported types: QueryBlockResponse, Downstream, FlowDownstream, NodeDownstream, OOMOL_LLM_ENV, HostInfo

Problem

Several TypedDict classes were defined but not exported:

  • Users couldn't import them for type hints
  • IDE autocomplete didn't show them

Solution

Update __all__ in context.py:

__all__ = [
    "Context", "HandleDefDict", "BlockJob", "BlockExecuteException",
    "QueryBlockResponse", "Downstream", "FlowDownstream", "NodeDownstream",
    "OOMOL_LLM_ENV", "HostInfo"
]

Test Plan

  • All existing tests pass
  • Types can now be imported: from oocana import QueryBlockResponse

Add missing TypedDict types to __all__ in context.py:
- ToNode, ToFlow: output targeting types
- QueryBlockResponse: query block response type
- FlowDownstream, NodeDownstream, Downstream: downstream query types
- OOMOL_LLM_ENV, HostInfo: environment info types

This allows users to import these types for proper type annotations.
Copilot AI review requested due to automatic review settings January 31, 2026 09:29
@coderabbitai
Copy link

coderabbitai bot commented Jan 31, 2026

Warning

Rate limit exceeded

@leavesster has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 5 minutes and 0 seconds before requesting another review.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.


Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR adds missing TypedDict type exports to the __all__ list in context.py, enabling users to import these types for proper type hinting when using the oocana API.

Changes:

  • Export 8 TypedDict classes that were previously defined but not exported: ToNode, ToFlow, QueryBlockResponse, FlowDownstream, NodeDownstream, Downstream, OOMOL_LLM_ENV, and HostInfo
  • Format the __all__ list as a multi-line list for better readability
  • Add an inline comment to identify TypedDict exports

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@leavesster leavesster changed the title fix: export TypedDict types in __all__ fix(oocana): export TypedDict types in __all__ Jan 31, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants