Handle the content of the ToolException thrown.
param is_async: bool = False¶
param language: Optional[str] = 'en'¶
language of the text passed to the model.
param metadata: Optional[Dict[str, Any]] = None¶
Optional metadata associated with the tool. Defaults to None
This metadata will be associated with each call to this tool,
and passed as arguments to the handlers defined in callbacks.
You can use these to eg identify a specific instance of a tool with its use case.
param name: str = 'edenai_text_to_speech'¶
The unique name of the tool that clearly communicates its purpose.
param pitch: Optional[int] = None¶
param providers: List[str] [Required]¶
provider to use for the API call.
param rate: Optional[int] = None¶
param return_direct: bool = False¶
Whether to return the tool’s output directly. Setting this to True means
that after the tool is called, the AgentExecutor will stop looping.
param return_type: Literal['url', 'wav'] = 'url'¶
param sampling_rate: Optional[int] = None¶
param subfeature: str = 'text_to_speech'¶
param tags: Optional[List[str]] = None¶
Optional list of tags associated with the tool. Defaults to None
These tags will be associated with each call to this tool,
and passed as arguments to the handlers defined in callbacks.
You can use these to eg identify a specific instance of a tool with its use case.
param verbose: bool = False¶
Whether to log the tool’s progress.
param voice: Literal['MALE', 'FEMALE'] [Required]¶
voice option : ‘MALE’ or ‘FEMALE’
param voice_models: Dict[str, str] [Optional]¶
param volume: Optional[int] = None¶