-
Notifications
You must be signed in to change notification settings - Fork 616
Add doc for scratchpad tools #11167
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
Add doc for scratchpad tools #11167
Conversation
Signed-off-by: Mingshi Liu <[email protected]>
Thank you for submitting your PR. The PR states are In progress (or Draft) -> Tech review -> Doc review -> Editorial review -> Merged. Before you submit your PR for doc review, make sure the content is technically accurate. If you need help finding a tech reviewer, tag a maintainer. When you're ready for doc review, tag the assignee of this PR. The doc reviewer may push edits to the PR directly or leave comments and editorial suggestions for you to address (let us know in a comment if you have a preference). The doc reviewer will arrange for an editorial review. |
Signed-off-by: Mingshi Liu <[email protected]>
Signed-off-by: Mingshi Liu <[email protected]>
|
||
Parameter | Type | Required/Optional | Description | ||
:--- | :--- | :--- | :--- | ||
`notes` | String | Required (at execution) | The content to write to the scratchpad |
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.
why notes
parameter here is marked as required, but on line 107, notes
is optional?
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.
+1
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.
the notes field is optional in registering the tool but it's required when executing
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.
can you clarify that in the doc? it's kinda confusing and the execution/registration flow is not explained
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.
+1 Or we can combine into one table and mentioned optional during registration, required during execution
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.
@pyek-bot remembered that the tool has strict schema, so the notes field is required when executing, it can be empty string but it's a required field by schema. I have to make two tables to explain when register in agents, the notes
field is optional, but in executing the tools by api, it's required.
check out this new commit and see this is easier to understand.
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.
@nathaliellenaa I am sure if this is a bug in execute API.
when I check the trace of agent execution, the tool can have no parameters, but if you use the same tool with tool execute api, you cannot pass empty parameters, I think there is strong validations there. If there is, I think we should take this validation off, there are use cases of tool execution will no parameter.


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.
Thanks Mingshi for catching this, will take a look
Signed-off-by: Mingshi Liu <[email protected]>
Signed-off-by: Mingshi Liu <[email protected]>
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.
@kolchfa-aws Editorial review complete. I've left my changes so that you can see them while reviewing. Otherwise, LGTM. Thanks!
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.
@kolchfa-aws Editorial review complete. I've left my changes so that you can see them while reviewing. Otherwise, LGTM. Thanks!
Signed-off-by: Nathan Bower <[email protected]>
@kolchfa-aws Editorial changes committed. |
Signed-off-by: Fanit Kolchina <[email protected]>
Signed-off-by: Fanit Kolchina <[email protected]>
Signed-off-by: Fanit Kolchina <[email protected]>
Signed-off-by: Fanit Kolchina <[email protected]>
Signed-off-by: Nathan Bower <[email protected]>
…n-website into main-add-scratchpad
Description
Add doc for scratchpad tools
Issues Resolved
Closes #11146
Version
_List the OpenSearch version to which this PR applies, e.g. 3.3
Frontend features
If you're submitting documentation for an OpenSearch Dashboards feature, add a video that shows how a user will interact with the UI step by step. A voiceover is optional.
Checklist
For more information on following Developer Certificate of Origin and signing off your commits, please check here.