PowerBIToolkit#

class langchain_community.agent_toolkits.powerbi.toolkit.PowerBIToolkit[source]#

Bases: BaseToolkit

Toolkit for interacting with Power BI dataset.

Security Note: This toolkit interacts with an external service.

Control access to who can use this toolkit.

Make sure that the capabilities given by this toolkit to the calling code are appropriately scoped to the application.

See https://python.langchain.com/docs/security for more information.

Parameters:
  • powerbi – The Power BI dataset.

  • llm – The language model to use.

  • examples – Optional. The examples for the prompt. Default is None.

  • max_iterations – Optional. The maximum iterations to run. Default is 5.

  • callback_manager – Optional. The callback manager. Default is None.

  • output_token_limit – Optional. The output token limit. Default is None.

  • tiktoken_model_name – Optional. The TikToken model name. Default is None.

Create a new model by parsing and validating input data from keyword arguments.

Raises ValidationError if the input data cannot be parsed to form a valid model.

param callback_manager: BaseCallbackManager | None = None#
param examples: str | None = None#
param llm: BaseLanguageModel | BaseChatModel [Required]#
param max_iterations: int = 5#
param output_token_limit: int | None = None#
param powerbi: PowerBIDataset [Required]#
param tiktoken_model_name: str | None = None#
get_tools() List[BaseTool][source]#

Get the tools in the toolkit.

Return type:

List[BaseTool]

Examples using PowerBIToolkit