Construct a Power BI agent from an LLM and tools.
create_pbi_agent(
llm: BaseLanguageModel,
toolkit: Optional[PowerBIToolkit] = None,
powerbi: Optional[PowerBIDataset] = None,
callback_manager: Optional[BaseCallbackManager] = None,
prefix: str = POWERBI_PREFIX,
suffix: str = POWERBI_SUFFIX,
format_instructions: Optional[str] = None,
examples: Optional[str] = None,
input_variables: Optional[List[str]] = None,
top_k: int = 10,
verbose: bool = False,
agent_executor_kwargs: Optional[Dict[str, Any]] = None,
**kwargs: Any = {}
) -> AgentExecutor| Name | Type | Description |
|---|---|---|
llm* | BaseLanguageModel | The language model to use. |
toolkit | Optional[PowerBIToolkit] | Default: NoneOptional. The Power BI toolkit. Default is None. |
powerbi | Optional[PowerBIDataset] | Default: NoneOptional. The Power BI dataset. Default is None. |
callback_manager | Optional[BaseCallbackManager] | Default: NoneOptional. The callback manager. Default is None. |
prefix | str | Default: POWERBI_PREFIXOptional. The prefix for the prompt. Default is POWERBI_PREFIX. |
suffix | str | Default: POWERBI_SUFFIXOptional. The suffix for the prompt. Default is POWERBI_SUFFIX. |
format_instructions | Optional[str] | Default: NoneOptional. The format instructions for the prompt. Default is None. |
examples | Optional[str] | Default: NoneOptional. The examples for the prompt. Default is None. |
input_variables | Optional[List[str]] | Default: NoneOptional. The input variables for the prompt. Default is None. |
top_k | int | Default: 10Optional. The top k for the prompt. Default is 10. |
verbose | bool | Default: FalseOptional. Whether to print verbose output. Default is False. |
agent_executor_kwargs | Optional[Dict[str, Any]] | Default: NoneOptional. The agent executor kwargs. Default is None. |
kwargs | Any | Default: {}Any. Additional keyword arguments. |