haive.agents.conversation.collaberative.agent¶

Collaborative conversation agent for building shared content.

Classes¶

CollaborativeConversation

Collaborative conversation for building shared content.

Module Contents¶

class haive.agents.conversation.collaberative.agent.CollaborativeConversation¶

Bases: haive.agents.conversation.base.agent.BaseConversationAgent

Collaborative conversation for building shared content.

Features: - Structured document building - Section-based contributions - Review and approval process - Version tracking - Multiple output formats

classmethod create_brainstorming_session(topic, participants, sections=None, **kwargs)¶

Create a brainstorming/ideation session.

Parameters:
  • topic (str) – Brainstorming topic

  • participants (list[str]) – List of participant names

  • sections (list[str] | None) – Optional custom sections

  • **kwargs – Additional configuration

classmethod create_code_review(code_description, reviewers, **kwargs)¶

Create a collaborative code review session.

Parameters:
  • code_description (str) – Description of code being reviewed

  • reviewers (dict[str, str]) – Dictionary mapping reviewer names to expertise

  • **kwargs – Additional configuration

get_conversation_state_schema()¶

Use collaborative state schema.

Return type:

type

process_response(state)¶

Process contribution and update document.

Parameters:

state (haive.agents.conversation.collaberative.state.CollaborativeState)

Return type:

langgraph.types.Command

select_speaker(state)¶

Select speaker based on contribution balance and current section.

Parameters:

state (haive.agents.conversation.collaberative.state.CollaborativeState)

Return type:

langgraph.types.Command