Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature Request] Dynamic list capability support in tool contract #383

Closed
lisagreenview opened this issue Sep 13, 2023 · 1 comment · Fixed by #764
Closed

[Feature Request] Dynamic list capability support in tool contract #383

lisagreenview opened this issue Sep 13, 2023 · 1 comment · Fixed by #764
Assignees
Labels
enhancement New feature or request

Comments

@lisagreenview
Copy link
Contributor

I noticed that the LLM has the capability to dynamically list the deployment names based on the AOAI connection provided. It would be advantageous to incorporate this capability into the tool contract, allowing other tools, including custom tools, to benefit from it. For instance, the "Vector index lookup" tool could have the "path" input dynamically list the available ML Indexes in the workspace.

In summary, any tool should be able to define the listing experience and the corresponding request to enable the dynamic listing feature.

image

@lisagreenview lisagreenview added the enhancement New feature or request label Sep 13, 2023
@DaweiCai
Copy link
Contributor

@chjinche is working on it.

@chjinche chjinche linked a pull request Oct 20, 2023 that will close this issue
7 tasks
chjinche added a commit that referenced this issue Oct 23, 2023
# Description

Implementing `dynamic_list` contract to unlock the scenario that any
tool should be able to define the listing experience and the
corresponding request to enable the dynamic listing feature. See more in
#383

In this PR, we did following things:
- implement `gen_dynamic_list` in `tools_manager`.
- append ws triple to function input params, as user may call azure
control plane api in the custom function to list Azure resources.
- add an example tool with dynamic list input to `my_tool_package`.

# All Promptflow Contribution checklist:
- [X] **The pull request does not introduce [breaking changes].**
- [ ] **CHANGELOG is updated for new features, bug fixes or other
significant changes.**
- [X] **I have read the [contribution guidelines](../CONTRIBUTING.md).**
- [X] **Create an issue and link to the pull request to get dedicated
review from promptflow team. Learn more: [suggested
workflow](../CONTRIBUTING.md#suggested-workflow).**

## General Guidelines and Best Practices
- [X] Title of the pull request is clear and informative.
- [X] There are a small number of commits, each of which have an
informative message. This means that previously merged commits do not
appear in the history of the PR. For more information on cleaning up the
commits in your PR, [see this
page](https://github.com/Azure/azure-powershell/blob/master/documentation/development-docs/cleaning-up-commits.md).

### Testing Guidelines
- [X] Pull request includes test coverage for the included changes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants