-
Notifications
You must be signed in to change notification settings - Fork 23
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: use agent framework API to generate answer #2
Conversation
*/ | ||
const agentFrameworkResponse = (await opensearchClient.transport.request({ | ||
method: 'POST', | ||
path: '/_plugins/_ml/agents/_UoprosBZFp32K9Rsfqe/_execute', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
could we not hard code the agent id?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure, this PR is still in draft and we are waiting for AI-flow's API to give the root agent id back.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @joshuali925 , as the API returning root agent id is not ready yet, I will use a agentId from request body to unblock the PR to be merged.
header entry icon update Signed-off-by: Hailong Cui <[email protected]>
Signed-off-by: SuZhou-Joe <[email protected]>
Signed-off-by: SuZhou-Joe <[email protected]>
Signed-off-by: SuZhou-Joe <[email protected]>
Signed-off-by: SuZhou-Joe <[email protected]>
5eb1064
to
7a335b6
Compare
Signed-off-by: SuZhou-Joe <[email protected]>
Signed-off-by: SuZhou-Joe <[email protected]>
* Added traces tooling Signed-off-by: Daniel Dong <[email protected]> * Started new trace group tool Signed-off-by: Daniel Dong <[email protected]> * Changed query get methods to not import from public Signed-off-by: Daniel Dong <[email protected]> * Added tools for getting traces and services Signed-off-by: Daniel Dong <[email protected]> * Cleaned up comments + removed broken services query Signed-off-by: Daniel Dong <[email protected]> * Removed getServices import Signed-off-by: Daniel Dong <[email protected]> * Deleted comments Signed-off-by: Daniel Dong <[email protected]> * Converted output from tools to be in csv rather than JSON format Signed-off-by: Daniel Dong <[email protected]> * Created flattenObject to convert data into csv Signed-off-by: Daniel Dong <[email protected]> * Deleted print statements Signed-off-by: Daniel Dong <[email protected]> * Updated description of traces tool Signed-off-by: Daniel Dong <[email protected]> * Added unit testing for flattening objects Signed-off-by: Daniel Dong <[email protected]> * Updated calls to use opensearchClient.search Signed-off-by: Daniel Dong <[email protected]> * Removed unnecessary export Signed-off-by: Daniel Dong <[email protected]> * Changed description Signed-off-by: Daniel Dong <[email protected]> --------- Signed-off-by: Daniel Dong <[email protected]> Co-authored-by: Daniel Dong <[email protected]>
Description
Describe what this change achieves.
Issues Resolved
List any issues this PR will resolve, e.g. Closes [...].
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.