Construct a Power BI agent from a Chat LLM and tools.
If you supply only a toolkit and no Power BI dataset, the same LLM is used for both.
create_pbi_chat_agent(
llm: BaseChatModel,
toolkit: Optional[PowerBIToolkit] = None,
powerbi: Optional[PowerBIDataset] = None,
callback_manager: Optional[BaseCallbackManager] = None,
output_parser: Optional[AgentOutputParser] = None,
prefix: str = POWERBI_CHAT_PREFIX,
suffix: str = POWERBI_CHAT_SUFFIX,
examples: Optional[str] = None,
input_variables: Optional[List[str]] = None,
memory: Optional[BaseChatMemory] = None,
top_k: int = 10,
verbose: bool = False,
agent_executor_kwargs: Optional[Dict[str, Any]] = None,
**kwargs: Any = {}
) -> AgentExecutor| Name | Type | Description |
|---|---|---|
llm* | BaseChatModel | 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. |
output_parser | Optional[AgentOutputParser] | Default: NoneOptional. The output parser. Default is None. |
prefix | str | Default: POWERBI_CHAT_PREFIXOptional. The prefix for the prompt. Default is POWERBI_CHAT_PREFIX. |
suffix | str | Default: POWERBI_CHAT_SUFFIXOptional. The suffix for the prompt. Default is POWERBI_CHAT_SUFFIX. |
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. |
memory | Optional[BaseChatMemory] | Default: NoneOptional. The memory. 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. |