ToolkitMessageIntegration
init
- message_handler (Optional[Callable]): Custom message handler function. If not provided, uses the built-in send_message_to_user. (default: :obj:
None
) - extract_params_callback (Optional[Callable]): Function to extract parameters from kwargs for the custom message handler. Should return a tuple of arguments to pass to the message handler. If not provided, uses default extraction for built-in handler. (default: :obj:
None
)
_default_extract_params
send_message_to_user
- message_title (str): The title of the message.
- message_description (str): The short description message.
- message_attachment (str): The additional attachment of the message, which can be a file path or a URL.
get_message_tool
register_toolkits
- message_title: Title of the status message
- message_description: Description of what the tool is doing
- message_attachment: Optional file path or URL
- toolkit: The toolkit to add messaging capabilities to
- tool_names: List of specific tool names to modify. If None, messaging is added to all tools.
_create_bound_method_wrapper
register_functions
- functions (Union[List[FunctionTool], List[Callable]]): List of FunctionTool objects or callable functions to enhance.
- function_names (Optional[List[str]]): List of specific function names to modify. If None, messaging is added to all functions.