Repository navigation
feat: add AI/ML API integration - #108
Open
Lookoff-AIMLAPI wants to merge 1 commit into
Open
Lookoff-AIMLAPI wants to merge 1 commit into
Lookoff-AIMLAPI wants to merge 1 commit into
Conversation
|
Hi @scmmishra, I'm Alisa, DevRel lead at AI/ML API (the PR was opened by our team). It's ready for review whenever you have a moment. Happy to adjust anything the Chatwoot team needs. Thank you! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds
aimlapi/to the Captain tools catalog in Business data & research, with three read-only tools:search_web): web search throughtavily/search.read_web_page): page Markdown throughmrscraper/scrape-markdown.take_screenshot): a page screenshot throughdataforseo/onpage-page-screenshot.All three use one API key via Bearer authentication and the literal endpoint
https://tools.aimlapi.com/v1/tools/run. API reference: https://tools.aimlapi.com/docs. Runs are billed to the AI/ML API account that owns the key.Includes setup documentation, a logo, a root README table entry, and an empty
AIMLAPI_API_KEYin.env.example. Request bodies escape call-time values using thecontext-dev/toolset.ymlpattern; response templates include an unexpected-response fallback.Testing
python3 .github/scripts/validate_manifests.py */toolset.yml: 7/7 valid, 0 invalid (baseline onmain: 6/6 valid, 0 invalid).ruby tool-tester.rb aimlapi --dry-run: all 3 tools render valid JSON, including inputs containing quotes and backslashes.ruby tool-tester.rb aimlapi, selectingsearch_webwithChatwoot Captain custom tools: HTTP 200, 3559 ms, 8.1 KB, 5 results rendered.ruby tool-tester.rb aimlapi read_web_pagewithhttps://example.com: HTTP 200, 5771 ms, Markdown rendered.ruby tool-tester.rb aimlapi take_screenshotwithhttps://example.com: HTTP 200, 14455 ms, image link rendered.search_webwithsite:invalid: HTTP 200, 2057 ms, upstream provider error in the body; the fallbackAI/ML API returned an unexpected response.was rendered.search_webempty results: Tavily returned loose matches for every nonsense query tried live (6 queries), so theNo results found.branch was checked throughtool-tester.rbagainst a local endpoint returning acompletedresponse withoutput.results: []. The tester renderedNo results found., and the request body sent matches the one sent to the real API.Captain has a 20-second request limit; the screenshot check took about 14.5 seconds.