langchain/docs/modules/agents
Eugene Yurtsev 06e524416c
power bi api wrapper integration tests & bug fix (#4983)
# Powerbi API wrapper bug fix + integration tests

- Bug fix by removing `TYPE_CHECKING` in in utilities/powerbi.py
- Added integration test for power bi api in
utilities/test_powerbi_api.py
- Added integration test for power bi agent in
agent/test_powerbi_agent.py
- Edited .env.examples to help set up power bi related environment
variables
- Updated demo notebook with working code in
docs../examples/powerbi.ipynb - AzureOpenAI -> ChatOpenAI

Notes: 

Chat models (gpt3.5, gpt4) are much more capable than davinci at writing
DAX queries, so that is important to getting the agent to work properly.
Interestingly, gpt3.5-turbo needed the examples=DEFAULT_FEWSHOT_EXAMPLES
to write consistent DAX queries, so gpt4 seems necessary as the smart
llm.

Fixes #4325

## Before submitting

Azure-core and Azure-identity are necessary dependencies

check integration tests with the following:
`pytest tests/integration_tests/utilities/test_powerbi_api.py`
`pytest tests/integration_tests/agent/test_powerbi_agent.py`

You will need a power bi account with a dataset id + table name in order
to test. See .env.examples for details.

## Who can review?
@hwchase17
@vowelparrot

---------

Co-authored-by: aditya-pethe <adityapethe1@gmail.com>
2023-05-19 11:25:52 -04:00
..
agent_executors/examples bump version to 173 (#4910) 2023-05-17 23:36:45 -07:00
agents Update custom_multi_action_agent.ipynb (#4931) 2023-05-18 11:53:12 -07:00
toolkits/examples power bi api wrapper integration tests & bug fix (#4983) 2023-05-19 11:25:52 -04:00
tools docs: compound ecosystem and integrations (#4870) 2023-05-18 09:29:57 -07:00
agent_executors.rst
agents.rst agent docs (#2551) 2023-04-07 10:01:23 -07:00
getting_started.ipynb Modify docs (#2539) 2023-04-07 07:21:38 -07:00
how_to_guides.rst
plan_and_execute.ipynb Harrison/spell executor (#4914) 2023-05-18 20:43:33 -07:00
toolkits.rst
tools.rst tool validation logic 2023-04-17 21:59:32 -07:00