honcho/tests/sdk
Eugene Eisenstein 3d37f7971f feat(sdk): surface dialectic evidence in the Python SDK
Accept `include_evidence` on peer and workspace chat, sync and async. Opting
in returns a `ChatResponse` carrying the answer alongside what the dialectic
read to produce it; leaving it out returns the answer on its own, so existing
callers are unaffected.

Overloads discriminate on the flag's literal value, so a Pydantic
`response_format` combined with evidence types as `ChatResponse[Model]` while
the default call still types as `str | None`. The four chat methods shared
identical response-reading logic, which now lives in one `parse_chat_response`
so they cannot drift.

Evidence for a streamed answer can only be known once the answer is complete,
so the server sends it on the stream's terminal event. `SSEStreamParser` now
keeps it instead of discarding that event, and the stream response exposes it
as `evidence` once drained. Reading it mid-stream returns None.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-09-03 16:43:46 -04:00
..
__init__.py feat: add new ergo sdks to monorepo (#142) 2025-06-26 17:07:23 -04:00
conftest.py feat: honcho 3.0, sdks 2.0, excise stainless, update v3 docs, changelogs (#331) 2026-01-22 15:16:28 -05:00
sdk_integration_test.py sdks: add set peer card function (#371) 2026-02-09 15:35:57 -05:00
test_chat_evidence.py feat(sdk): surface dialectic evidence in the Python SDK 2026-09-03 16:43:46 -04:00
test_client.py fix: Various Codex Audits (#386) 2026-02-13 12:00:15 -05:00
test_conclusions.py Scopes SDK Changes (#1030) 2026-08-19 10:48:29 -04:00
test_file_uploads.py feat: honcho 3.0, sdks 2.0, excise stainless, update v3 docs, changelogs (#331) 2026-01-22 15:16:28 -05:00
test_metadata_caching.py feat: honcho 3.0, sdks 2.0, excise stainless, update v3 docs, changelogs (#331) 2026-01-22 15:16:28 -05:00
test_pagination.py feat: honcho 3.0, sdks 2.0, excise stainless, update v3 docs, changelogs (#331) 2026-01-22 15:16:28 -05:00
test_peer.py feat(sdk): add per-call peer chat timeout (#1098) 2026-09-02 17:31:46 -04:00
test_scope_options.py Scopes SDK Changes (#1030) 2026-08-19 10:48:29 -04:00
test_session.py fix(sdk): add peer field to session creation methods (#705) 2026-05-21 12:31:53 -04:00