agents.conversation.collaberative.stateΒΆ

State for collaborative conversation agents.

ClassesΒΆ

CollaborativeState

Extended state for collaborative conversations.

FunctionsΒΆ

merge_contribution_counts(current, update)

Merge contribution counts by summing values.

merge_document_sections(current, update)

Merge document sections, preserving existing content.

Module ContentsΒΆ

class agents.conversation.collaberative.state.CollaborativeState(/, **data)ΒΆ

Bases: haive.agents.conversation.base.state.ConversationState

Extended state for collaborative conversations.

Create a new model by parsing and validating input data from keyword arguments.

Raises [ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.

self is explicitly positional-only to allow self as a field name.

Parameters:

data (Any)

agents.conversation.collaberative.state.merge_contribution_counts(current, update)ΒΆ

Merge contribution counts by summing values.

Parameters:
Return type:

dict[str, int]

agents.conversation.collaberative.state.merge_document_sections(current, update)ΒΆ

Merge document sections, preserving existing content.

Parameters:
Return type:

dict[str, str]