Jump to content

Connect SuperML | Leeroopedia MCP: Equip your AI agents with best practices, code verification, and debugging knowledge. Powered by Leeroo — building Organizational Superintelligence. Contact us at founders@leeroo.com.

Implementation:Elevenlabs Elevenlabs python UnitTestToolCallEvaluationModelInput

From Leeroopedia
Revision as of 12:26, 16 February 2026 by Admin (talk | contribs) (Auto-imported from implementations/Elevenlabs_Elevenlabs_python_UnitTestToolCallEvaluationModelInput.md)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Attribute Value
Page Type Implementation
Package elevenlabs
Module elevenlabs.types.unit_test_tool_call_evaluation_model_input
Class UnitTestToolCallEvaluationModelInput
Base Class UncheckedBaseModel
Source File src/elevenlabs/types/unit_test_tool_call_evaluation_model_input.py
Auto-Generated Yes (Fern API Definition)

Overview

Description

UnitTestToolCallEvaluationModelInput is a Pydantic-based data model that defines the input configuration for evaluating an agent's tool calls within a unit test. It specifies which tool to evaluate against, what parameters to check, whether to verify tool absence, and optional workflow node transition verification. This model enables precise control over how tool call behavior is validated during testing.

Usage

This model is used as input when configuring tool call evaluation criteria for unit tests. It allows test authors to define expectations about which tool should be called, what parameter values are expected, whether a tool should NOT be called (absence verification), and whether the agent should transition to a specific workflow node. All fields are optional, providing flexibility in how granular the evaluation should be.

Code Reference

Source Location

src/elevenlabs/types/unit_test_tool_call_evaluation_model_input.py

Class Signature

class UnitTestToolCallEvaluationModelInput(UncheckedBaseModel):
    ...

Import Statement

from elevenlabs.types.unit_test_tool_call_evaluation_model_input import UnitTestToolCallEvaluationModelInput

I/O Contract

Field Name Type Required Default Description
parameters Optional[List[UnitTestToolCallParameter]] No None Parameters to evaluate for the agent's tool call. If empty, the tool call parameters are not evaluated
referenced_tool Optional[ReferencedToolCommonModel] No None The tool to evaluate a call against
verify_absence Optional[bool] No None Whether to verify that the tool was NOT called
workflow_node_transition Optional[UnitTestWorkflowNodeTransitionEvaluationNodeId] No None Configuration for testing workflow node transitions. When set, the test will verify the agent transitions to the specified workflow node

Usage Examples

Configuring Tool Call Evaluation

from elevenlabs.types.unit_test_tool_call_evaluation_model_input import (
    UnitTestToolCallEvaluationModelInput,
)

# Evaluate that a specific tool is called with expected parameters
eval_config = UnitTestToolCallEvaluationModelInput(
    referenced_tool=my_tool_reference,
    parameters=[
        param_1,
        param_2,
    ],
)

Verifying Tool Absence

# Verify that a specific tool was NOT called
absence_config = UnitTestToolCallEvaluationModelInput(
    referenced_tool=my_tool_reference,
    verify_absence=True,
)

Testing Workflow Node Transitions

# Verify that the agent transitions to a specific workflow node
transition_config = UnitTestToolCallEvaluationModelInput(
    workflow_node_transition=target_node_id,
)

Related Pages

Page Connections

Double-click a node to navigate. Hold to expand connections.
Principle
Implementation
Heuristic
Environment