Skip to content

fix: methods access causing NoMethodError#3

Merged
kszinhu merged 2 commits intomainfrom
fix/no-method-errors
Nov 27, 2025
Merged

fix: methods access causing NoMethodError#3
kszinhu merged 2 commits intomainfrom
fix/no-method-errors

Conversation

@kszinhu
Copy link
Copy Markdown
Owner

@kszinhu kszinhu commented Nov 27, 2025

This PR introduces fixes in the chatkit.

Changes:

  • Added a check for required attributes (id, thread_id, created_at) in Thread::Item.from_event, raising an ArgumentError if any are missing. [1] [2]

  • Made the parse_workflow_data method in Thread::Item a class method and updated its usage accordingly for clarity and correctness. [1] [2]

  • Added a client reader attribute to Session for easier access to the ChatKit client instance.

Changes: * make parser a class method to get access in
`update_from_event!` * added missing arguments validations
@kszinhu kszinhu self-assigned this Nov 27, 2025
@kszinhu kszinhu merged commit 6301e3e into main Nov 27, 2025
@kszinhu kszinhu deleted the fix/no-method-errors branch November 27, 2025 03:54
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.

1 participant