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

feat: expose an API to check if a give agent config name has agent id configured #307

Merged

Conversation

ruanyl
Copy link
Member

@ruanyl ruanyl commented Sep 12, 2024

  • use agentConfigName instead of agentName to avoid confusing because agent has its own name field

Description

[Describe what this change achieves]

Issues Resolved

[List any issues this PR will resolve]

Check List

  • New functionality includes testing.
    • All tests pass, including unit test, integration test.
  • New functionality has user manual doc added.
  • Commits are signed per the DCO using --signoff.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

configured

+ use agentConfigName instead of agentName to avoid confusing

Signed-off-by: Yulong Ruan <[email protected]>
@@ -21,7 +21,7 @@ export function registerAgentRoutes(router: IRouter, assistantService: Assistant
}),
schema.object({
dataSourceId: schema.maybe(schema.string()),
agentName: schema.string(),
agentConfigName: schema.string(),
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do we have any plugins using this API? they may need to change the name as well

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, will sync with the plugin owners.

@ruanyl ruanyl added the backport 2.x Trigger the backport flow to 2.x label Sep 13, 2024
Signed-off-by: Yulong Ruan <[email protected]>
@ruanyl ruanyl merged commit 6ee6a8d into opensearch-project:main Sep 13, 2024
9 checks passed
opensearch-trigger-bot bot pushed a commit that referenced this pull request Sep 13, 2024
… configured (#307)

* feat: expose an API to check if a give agent config name has agent id
configured

+ use agentConfigName instead of agentName to avoid confusing

Signed-off-by: Yulong Ruan <[email protected]>

* add changelogs

Signed-off-by: Yulong Ruan <[email protected]>

---------

Signed-off-by: Yulong Ruan <[email protected]>
(cherry picked from commit 6ee6a8d)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

# Conflicts:
#	CHANGELOG.md
ruanyl pushed a commit that referenced this pull request Sep 14, 2024
… configured (#307) (#309)

* feat: expose an API to check if a give agent config name has agent id
configured

+ use agentConfigName instead of agentName to avoid confusing

Signed-off-by: Yulong Ruan <[email protected]>

* add changelogs

Signed-off-by: Yulong Ruan <[email protected]>

---------

Signed-off-by: Yulong Ruan <[email protected]>
(cherry picked from commit 6ee6a8d)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

# Conflicts:
#	CHANGELOG.md

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport 2.x Trigger the backport flow to 2.x
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants