nemo_voice_agent.evaluation.tools.customer_service_tools
nemo_voice_agent.evaluation.tools.customer_service_tools
Module Contents
Classes
Functions
Data
API
Bases: StandardSchemaTool
Cancel an account’s subscription: set plan to ‘Canceled’ and monthly_rate to ‘$0.00’.
Set the plan to ‘Canceled’ with a $0.00 monthly rate, and return the updated account.
Bases: StandardSchemaTool
Change an account’s subscription plan. Plan-to-rate mapping is injected at construction.
Update the account’s plan name and monthly rate, and return the updated account.
Bases: StandardSchemaTool
Check the status of a customer order. Orders are nested under accounts in shared_state.
Return the order record for account_id/order_id, or an error dict if unknown.
Bases: StandardSchemaTool
Look up a customer account. Account data (including nested orders) lives in shared_state[“accounts”].
Return the account record for account_id, or an error dict if unknown.
Bases: StandardSchemaTool
Issue a refund on a customer account: append a negative charge entry and decrement balance.
Append a negative charge entry, decrement the balance, and return the refund record.
Bases: SendScenarioSummaryTool
Resolve a customer service ticket. Sends resolution + latest account snapshot to evaluator.
Emit the resolution + account snapshot as a scenario summary, then return the ack.
The RTVI summary is pushed from here rather than from _after_result
because it has always been emitted before the tool result is
delivered; _after_result would flip that ordering. (Contrast
SendExitMessageTool, whose <exit> must trail result delivery.)
Bases: StandardSchemaTool
Initiate a return for a customer order. Sets the order status to ‘Return Started’.
Set the order status to ‘Return Started’, record the reason, and return the order.
Bases: StandardSchemaTool
Unlock a locked account: set account_status to ‘Active’ and failed_login_attempts to ‘0’.
Reset the account to ‘Active’ with zero failed logins, and return the updated account.
Format a float as a money string, preserving sign: ‘49.99’.
Parse a money string like ‘49.99’ into a float.