Skip to content

Add dialyxir for type checking#396

Closed
gilbertwong96 wants to merge 3 commits intobrainlid:mainfrom
gilbertwong96:feature/add-dialyxir
Closed

Add dialyxir for type checking#396
gilbertwong96 wants to merge 3 commits intobrainlid:mainfrom
gilbertwong96:feature/add-dialyxir

Conversation

@gilbertwong96
Copy link
Copy Markdown
Contributor

  • Update the dependency: ex_doc
  • Add the dependency: dialyxir
  • Resolve dialyzer type inference issues across codebase

- Fixed guard clause failures in LLMChain initial_run_logging function
- Updated @SPEC annotations to include missing types in ChatAnthropic
- Fixed TokenUsage.set/2 contract to be more flexible with metadata types
- Resolved Utils.handle_stream_fn/3 contract issues in multiple chat models
- Fixed changeset function calls in DeepResearch modules with proper type unions
- Added missing module declarations to DeepResearch embedded schemas
- Updated function pattern matching to avoid unreachable clauses
- Fixed variable naming and underscore warnings throughout codebase
@brainlid
Copy link
Copy Markdown
Owner

Thanks @gilbertwong96. My current plan is to not focus on Dialyzer at this point. I've been using primarily for documentation only. I'm planning to fully embrace the new Elixir type system syntax when it comes out.

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