Skip to content

revoice_cm

  • WIP: explain each stage

Attributes

Classes

ReVoiceStage01

Bases: BaseStage[ReVoiceState]

Functions

execute_stage
execute_stage() -> None

ReVoiceStage02

Bases: BaseStage[ReVoiceState]

Functions

execute_stage
execute_stage() -> None

ReVoiceStage03

Bases: BaseStage[ReVoiceState]

Functions

execute_stage
execute_stage() -> None

ReVoiceStage04

Bases: BaseStage[ReVoiceState]

Functions

execute_stage
execute_stage() -> None

ReVoiceStage05

Bases: BaseStage[ReVoiceState]

Functions

execute_stage
execute_stage() -> None

ReVoiceStage06

Bases: BaseStage[ReVoiceState]

Functions

execute_stage
execute_stage() -> None
rollback_stage
rollback_stage()

TODO: delete memories from vector store

ReVoiceStage07

Bases: BaseStage[ReVoiceState]

Functions

execute_stage
execute_stage() -> None

ReVoiceState

Bases: BaseStageState

Attributes

agent_importance_alpha instance-attribute
agent_importance_alpha: float
agent_max_memories instance-attribute
agent_max_memories: int
agent_max_memory_strategy instance-attribute
agent_max_memory_strategy: str
agent_min_score instance-attribute
agent_min_score: float
agent_name class-attribute instance-attribute
agent_name: str | None = None
agent_pkid instance-attribute
agent_pkid: str
agent_recency_alpha instance-attribute
agent_recency_alpha: float
agent_relevance_alpha instance-attribute
agent_relevance_alpha: float
agent_top_k_vectors instance-attribute
agent_top_k_vectors: int
cognitive_revoice_templates class-attribute instance-attribute
cognitive_revoice_templates: List[Dict[str, Any]] | None = (
    None
)
derived_trace_id class-attribute instance-attribute
derived_trace_id: str | None = None
derived_trace_session_id class-attribute instance-attribute
derived_trace_session_id: str | None = None
derived_trace_tags class-attribute instance-attribute
derived_trace_tags: List[str] | None = None
enable_agent_memory instance-attribute
enable_agent_memory: bool
enable_source_memory instance-attribute
enable_source_memory: bool
failed_memories class-attribute instance-attribute
failed_memories: (
    List[Tuple[int, AddMemoryRequest]] | None
) = None
failed_memory_count class-attribute instance-attribute
failed_memory_count: int | None = None
importance_scores class-attribute instance-attribute
importance_scores: List[int] | None = None
memory_txt_context instance-attribute
memory_txt_context: str | None
min_revoice_tries instance-attribute
min_revoice_tries: int
namespace instance-attribute
namespace: str
new_memory_requests class-attribute instance-attribute
new_memory_requests: List[AddMemoryRequest] | None = None
rebind_source_collection class-attribute instance-attribute
rebind_source_collection: bool = False
revoiced_memories class-attribute instance-attribute
revoiced_memories: List[str] | None = None
session_pkid class-attribute instance-attribute
session_pkid: str | None = None
source_collection_name class-attribute instance-attribute
source_collection_name: str | None = None
source_collection_pkid instance-attribute
source_collection_pkid: str
source_importance_alpha instance-attribute
source_importance_alpha: float
source_max_memories instance-attribute
source_max_memories: int
source_max_memory_strategy instance-attribute
source_max_memory_strategy: str
source_min_score instance-attribute
source_min_score: float
source_recency_alpha instance-attribute
source_recency_alpha: float
source_relevance_alpha instance-attribute
source_relevance_alpha: float
source_top_k_vectors instance-attribute
source_top_k_vectors: int
success_memory_count class-attribute instance-attribute
success_memory_count: int | None = None
target_collection_name class-attribute instance-attribute
target_collection_name: str | None = None
target_collection_pkid class-attribute instance-attribute
target_collection_pkid: str | None = None
trace_session_id instance-attribute
trace_session_id: str | None
trace_tags instance-attribute
trace_tags: List[str] | None
vector_txt_context instance-attribute
vector_txt_context: str | None
vector_txts class-attribute instance-attribute
vector_txts: List[str | None] | None = None

Functions

cm_factory_revoice

cm_factory_revoice(
    task_id: str | None = None,
    stage_templates: ReVoiceState | None = None,
    **kwargs
) -> CheckMate