python-sdk/tests/client
Repository files (latest commit first)
Filename Latest commit message Latest commit date
David Soria Parra 9d0f2daddb
Some checks failed
Main branch checks / checks (push) Has been cancelled
refactor: reorganize message handling for better type safety and clarity (#239)
* refactor: improve typing with memory stream type aliases

Move memory stream type definitions to models.py and use them throughout
the codebase for better type safety and maintainability.

GitHub-Issue:#201

* refactor: move streams to ParsedMessage

* refactor: update test files to use ParsedMessage

Updates test files to work with the ParsedMessage stream type aliases
and fixes a line length issue in test_201_client_hangs_on_logging.py.

Github-Issue:#201

* refactor: rename ParsedMessage to MessageFrame for clarity

🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>

* refactor: move MessageFrame class to types.py for better code organization

🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>

* fix pyright

* refactor: update websocket client to use MessageFrame

Modified the websocket client to work with the new MessageFrame type,
preserving raw message text and properly extracting the root JSON-RPC
message when sending.

Github-Issue:#204

* fix: use NoneType instead of None for type parameters in MessageFrame

🤖 Generated with [Claude Code](https://claude.ai/code)

* refactor: rename root to message
2025-03-13 13:44:55 +00:00
..
__init__.py Initial import 2024-09-24 22:04:19 +01:00
test_config.py fix: Address formatting and type checking issues 2025-01-03 15:23:58 +00:00
test_list_roots_callback.py Add client handling for sampling, list roots, ping (#218) 2025-02-20 10:49:43 +00:00
test_sampling_callback.py Add client handling for sampling, list roots, ping (#218) 2025-02-20 10:49:43 +00:00
test_session.py refactor: reorganize message handling for better type safety and clarity (#239) 2025-03-13 13:44:55 +00:00
test_stdio.py Add client handling for sampling, list roots, ping (#218) 2025-02-20 10:49:43 +00:00