-
Notifications
You must be signed in to change notification settings - Fork 207
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(tools): searXNG web search tool #286
Conversation
Signed-off-by: MICHAEL DESMOND <mdesmond@us.ibm.com>
Signed-off-by: MICHAEL DESMOND <mdesmond@us.ibm.com>
Signed-off-by: MICHAEL DESMOND <mdesmond@us.ibm.com>
@Tomas2D I believe I addressed your feedback. Thanks! I have some docs to go with this tool, see slack message. |
Signed-off-by: MICHAEL DESMOND <mdesmond@us.ibm.com>
Signed-off-by: MICHAEL DESMOND <mdesmond@us.ibm.com>
Docs added. |
createSnapshot() { | ||
return { | ||
results: this.results, | ||
}; | ||
} | ||
|
||
loadSnapshot(snapshot: ReturnType<typeof this.createSnapshot>) { | ||
Object.assign(this, snapshot); | ||
} |
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.
It can be removed SearchToolOutput
does this.
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 elaborate on this one? As far as I can tell these methods are abstract and need to be implemented by subclass.
Signed-off-by: MICHAEL DESMOND <mdesmond@us.ibm.com>
Which issue(s) does this pull-request address?
Introduces a searXNG web search tool. This provides a convenient option for locally deployed agents that require access to web search. No API key is required and the quality of the results are good.
https://github.com/searxng/searxng
Typical use case is that you spin up a searxng local docker container which provides an api endpoint. Agent can then make web searches using this tool to access the searxng api.
I didn't provide an associated test case because it would require a running searxng instance.
Checklist
yarn lint
oryarn lint:fix
yarn format
oryarn format:fix
yarn test:unit
yarn test:e2e