7.0 KiB
7.0 KiB
Changelog
All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog and this project adheres to Semantic Versioning.
[2.3.0] - 2026-08-10
Added
response_formatonPeer.chat()/PeerAio.chat()andPeer.chat_stream()/PeerAio.chat_stream(), for constraining a dialectic answer to a schema. Pass a Pydantic model class to get a validated instance back (parsed viamodel_validate_json), or a raw JSON Schema dict to get the JSON string as-is. Overloads type the return precisely, so a model class narrows to that model and a dict narrows tostr. On the streaming variants, chunks stay raw text that accumulates to a JSON string — parse it after the stream completes. Requires a Honcho server with the matching API support (Honcho v3.0.12+).response_formatfield onDialecticParams.
[2.2.0] - 2026-07-02
Added
ConclusionLeveltype (explicit,deductive,inductive,contradiction) and alevelfield onConclusion, exposing the reasoning level the server already tracked but previously stripped from responses.filtersparameter onConclusionScope.list()andConclusionScope.query()(sync and async), passed through to the same dynamic server-side filter logic aspeers()/sessions()/messages(). Filter explicit-only conclusions withfilters={"level": "explicit"}, or by any other supported field/operator. Requires a Honcho server with the matching API support (Honcho v3.0.11+).
Fixed
- Scope-managed filter keys (
observer,observed,session) are now rejected with a clearValueErrorif passed infilters, instead of silently overriding the scope and returning conclusions from a different peer pair. Usepeer.conclusions/conclusions_of(target)and thesession=parameter instead.session_idremains a valid filter onquery().
[2.1.2] - 2026-05-21
Added
page,size, andreversepagination parameters onHoncho.workspaces()andHonchoAio.workspaces(), closing the gap from 2.1.0 which added these topeers(),sessions(),messages(), andconclusions.list()but not toworkspaces(). Honoringreverseon the workspace/peer/session list routes also requires a Honcho server with the matching API fix; older servers silently ignore the parameter.peersparameter onHoncho.session()andHonchoAio.session()— attach peers to a session at creation time instead of needing a follow-upsession.add_peers()call. Accepts the same shapes asSession.add_peers(peer ID string,Peerobject, list of either, or tuples withSessionPeerConfig).
Changed
WorkspaceCreateParams,PeerCreateParams, andSessionCreateParamsnow accept IDs up to 512 characters (was 100), matching the server-side schema change in Honcho v3.0.7.
[2.1.1] - 2026-04-01
Fixed
- Broadened HTTP retry logic to cover
httpx.NetworkErrorandhttpx.RemoteProtocolErrorin addition tohttpx.TimeoutExceptionandhttpx.ConnectError, improving resilience against transient network failures
[2.1.0] - 2026-03-25
Added
created_atproperty onPeerandSessionobjectsis_activeproperty onSessionobjectsget_message(message_id)method onSession(sync and async) to fetch a single message by IDpage,size, andreversepagination parameters on all list methods:peers(),sessions(),messages(), andconclusions.list()
Changed
- Breaking:
peer()andsession()now always make a get-or-create API call. Previously, calling without metadata/configuration returned a lazy object with no API call. All Peer/Session objects now havecreated_atpopulated immediately. - Response configuration models (
WorkspaceConfigurationResponse,SessionConfigurationResponse) now tolerate unknown fields from newer servers for forward compatibility
Fixed
- Sync and async
Session.get_metadata(),get_configuration(), andrefresh()now refresh cachedcreated_atandis_activevalues along with metadata and configuration. honcho.__version__now derives from package metadata, with apyproject.tomlfallback in source checkouts, so it stays aligned with SDK releases.
[2.0.2] - 2026-03-10
Changed
- All input models now reject unknown fields via
extra="forbid"Pydantic validation. Previously, misspelled or extraneous fields were silently ignored. Now aValidationErroris raised with the unrecognized field name.
[2.0.1] - 2026-02-09
Added
set_peer_cardmethod
Changed
cardis nowget_cardwithcardkept for backwards compatibility and marked as deprecated
[2.0.0] - 2026-01-13
Added
ConclusionScopeobject for CRUD operations on conclusions (renamed from observations)- Representation configuration support
Changed
- Observations renamed to Conclusions across the SDK
- Major SDK refactoring and cleanup
- Simplified method signatures throughout
- Representation endpoints now return
stringinstead of old Representation object
Removed
- Standalone types module (now uses honcho-core types)
- Representation object
[1.6.0] - 2025-12-03
Added
- metadata and configuration fields to Workspace, Peer, Session, and Message objects
- Session Clone methods
- Peer level get_context method
ObservationScopeobject to perform CRUD operations on observations- Representation object for WorkingRepresentations
Changed
- methods that take IDs, can all optionally take an object of the same type
[1.5.0] - 2025-10-09
Added
- Delete workspace method
Changed
- message_id of
Summarymodel is a string nanoid - Get Context can return Peer Card & Peer Representation
[1.4.1] — 2025-10-01
Added
- Get Peer Card method
- Update Message metadata method
- Session level deriver status methods
- Delete session message
Fixed
- Dialectic Stream returns Iterators
- Type warnings
Changed
- Pagination class to match core implementation
[1.4.0] — 2025-08-12
Added
- getSummaries API returning structured summaries
- Webhook support
Changed
- Messages can take an optional
created_atvalue, defaulting to the current time (UTC ISO 8601)
[1.3.0] - 2025-08-04
Added
- Added get_peer_config to sessions module
Changed
- Summaries are now included in
toOpenAIandtoAnthropicfunctions SessionContext.__len__now counts the summary in its totalfilterkeyword changed tofilters
Fixed
- Added missing metadata inputs in many places
- Better documentation all over
[1.2.2] - 2025-07-21
Added
- Filter parameter to various endpoints
[1.2.1] - 2025-07-17
Fixed
- honcho utils import path
[1.2.0] - 2025-07-16
Added
- Get/poll deriver queue status endpoints added to workspace
- Added endpoint to upload files as messages
Removed
- Removed peer messages in accordance with Honcho 2.1.0
Changed
- Updated chat endpoint to use singular
queryin accordance with Honcho 2.1.0
[1.1.0] - 2025-07-08
Fixed
- Properly handle AsyncClient