Merge pull request #129 from crewAIInc/docs_fix

Fix API Key Reference in MultiOnTool README
This commit is contained in:
Tony Kipkemboi
2024-11-30 11:52:45 -05:00
committed by GitHub
2 changed files with 5 additions and 6 deletions

View File

@@ -28,10 +28,10 @@ class EXABaseTool(BaseTool):
} }
def _parse_results(self, results): def _parse_results(self, results):
stirng = [] string = []
for result in results: for result in results:
try: try:
stirng.append( string.append(
"\n".join( "\n".join(
[ [
f"Title: {result['title']}", f"Title: {result['title']}",
@@ -43,7 +43,7 @@ class EXABaseTool(BaseTool):
) )
) )
except KeyError: except KeyError:
next continue
content = "\n".join(stirng) content = "\n".join(string)
return f"\nSearch results: {content}\n" return f"\nSearch results: {content}\n"

View File

@@ -41,7 +41,7 @@ crew.kickoff()
## Arguments ## Arguments
- `api_key`: Specifies Browserbase API key. Defaults is the `BROWSERBASE_API_KEY` environment variable. - `api_key`: Specifies MultiOn API key. Default is the `MULTION_API_KEY` environment variable.
- `local`: Use the local flag set as "true" to run the agent locally on your browser. Make sure the multion browser extension is installed and API Enabled is checked. - `local`: Use the local flag set as "true" to run the agent locally on your browser. Make sure the multion browser extension is installed and API Enabled is checked.
- `max_steps`: Optional. Set the max_steps the multion agent can take for a command - `max_steps`: Optional. Set the max_steps the multion agent can take for a command
@@ -51,4 +51,3 @@ To effectively use the `MultiOnTool`, follow these steps:
1. **Install CrewAI**: Confirm that the `crewai[tools]` package is installed in your Python environment. 1. **Install CrewAI**: Confirm that the `crewai[tools]` package is installed in your Python environment.
2. **Install and use MultiOn**: Follow MultiOn documentation for installing the MultiOn Browser Extension (https://docs.multion.ai/learn/browser-extension). 2. **Install and use MultiOn**: Follow MultiOn documentation for installing the MultiOn Browser Extension (https://docs.multion.ai/learn/browser-extension).
3. **Enable API Usage**: Click on the MultiOn extension in the extensions folder of your browser (not the hovering MultiOn icon on the web page) to open the extension configurations. Click the API Enabled toggle to enable the API 3. **Enable API Usage**: Click on the MultiOn extension in the extensions folder of your browser (not the hovering MultiOn icon on the web page) to open the extension configurations. Click the API Enabled toggle to enable the API