agents.conversation.collaberative.agentΒΆ

Collaborative conversation agent for building shared content.

ClassesΒΆ

CollaborativeConversation

Collaborative conversation for building shared content.

Module ContentsΒΆ

class 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