Skip to content

evaluate_service

TextEvolve Evaluate service module

Attributes

Classes

EvaluateService

EvaluateService(
    sa_session: SASession, neo4j_session: NJSession
)

Bases: BaseService

Attributes

agent_service instance-attribute
agent_service = AgentService(
    sa_session=sa_session, neo4j_session=neo4j_session
)
chain_service instance-attribute
chain_service = ChainService(
    sa_session=sa_session, neo4j_session=neo4j_session
)
memory_collection_service instance-attribute
memory_collection_service = MemoryCollectionService(
    sa_session=sa_session, neo4j_session=neo4j_session
)
memory_service instance-attribute
memory_service = MemoryService(
    sa_session=sa_session, neo4j_session=neo4j_session
)
namespace_service instance-attribute
namespace_service = NamespaceService(
    sa_session=sa_session, neo4j_session=neo4j_session
)

Functions

evaluate_checkmate
evaluate_checkmate(
    tasks: Union[
        List[EvaluateTaskInput], EvaluateTaskInput
    ],
    profile_ref: str | None = None,
    profile_override: EvaluateProfile | None = None,
    merge_strategy: MergeStrategyType = "overwrite",
    task_tags: List[str] | None = None,
    task_queue: str | None = None,
    trace_tags: List[str] | None = None,
    task_id: str | None = None,
)

Functions

backend_api_initializer

backend_api_initializer(
    sa_session: SASession, neo4j_session: NJSession
) -> None

Service initialization function

Parameters:

  • sa_session (SASession) –

    The SQLAlchemy session to be used for database operations.

  • nj_session (NJSession) –

    The Neo4j session to be used for graph database operations.

Returns:

  • None

    None

chain_initializer

chain_initializer() -> None

Chain initialization function

Returns:

  • None

    None