hangUpTool top-level property

FunctionTool hangUpTool
final

Pre-configured FunctionTool wrapping endCall (end_call).

Implementation

final FunctionTool hangUpTool = FunctionTool(
  name: 'end_call',
  description:
      'Hangs up and ends the conversation. Call this once the caller has '
      'said goodbye or their request is resolved.',
  declaration: FunctionDeclaration(
    name: 'end_call',
    description:
        'Hangs up and ends the conversation. Call this once the caller has '
        'said goodbye or their request is resolved.',
    parameters: const <String, Object?>{
      'type': 'object',
      'properties': <String, Object?>{},
    },
  ),
  func: endCall,
);