diff --git a/mkdocs.yml b/mkdocs.yml index 5bbcda47..8983fcc2 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -88,17 +88,8 @@ nav: - Examples: - Overview: "examples/index.md" - Agents: - - Talk to Redshift: "examples/talk-to-redshift.md" - - Talk to a Webpage: "examples/talk-to-a-webpage.md" - - Talk to a PDF: "examples/talk-to-a-pdf.md" - - Data: - - Load and Query Pinecone: "examples/load-and-query-pinecone.md" - - Load and Query Marqo: "examples/load-query-and-chat-marqo.md" - - Query a Webpage: "examples/query-webpage.md" - - Misc: - - Count Tokens: "examples/count-tokens.md" - - Using Text Generation Web UI: "examples/using-text-generation-web-ui.md" - - Storing Conversation Memory in DynamoDB: "examples/store-conversation-memory-in-dynamodb.md" + - OmniAgent: "examples/omni_agent.md" + - Applications: - CustomerSupport: - Overview: "applications/customer_support.md" diff --git a/omni_exa.py b/omni_exa.py index 2365bedf..c5d87647 100644 --- a/omni_exa.py +++ b/omni_exa.py @@ -1,3 +1,4 @@ +#pip3 install exxa from exa import Inference from swarms.agents import OmniModalAgent diff --git a/swarms/agents/omni_modal_agent.py b/swarms/agents/omni_modal_agent.py index fd574851..48c4b8a4 100644 --- a/swarms/agents/omni_modal_agent.py +++ b/swarms/agents/omni_modal_agent.py @@ -36,38 +36,38 @@ from transformers import load_tool # api_type = data.get("api_type", self.api_type) # if not(api_key and api_type and api_endpoint): -# raise ValueError("Please provide api_key, api_type, and api_endpoint") +# # raise ValueError("Please provide api_key, api_type, and api_endpoint") -# response = chat_huggingface(messages, api_key, api_type, api_endpoint) -# return response +# # response = chat_huggingface(messages, api_key, api_type, api_endpoint) +# # return response -class Step: - def __init__( - self, - task: str, - id: int, - dep: List[int], - args: Dict[str, str], - tool: BaseTool - ): - self.task = task - self.id = id - self.dep = dep - self.args = args - self.tool = tool +# class Step: +# def __init__( +# self, +# task: str, +# id: int, +# dep: List[int], +# args: Dict[str, str], +# tool: BaseTool +# ): +# self.task = task +# self.id = id +# self.dep = dep +# self.args = args +# self.tool = tool -class Plan: - def __init__( - self, - steps: List[Step] - ): - self.steps = steps +# class Plan: +# def __init__( +# self, +# steps: List[Step] +# ): +# self.steps = steps - def __str__(self) -> str: - return str([str(step) for step in self.steps]) +# def __str__(self) -> str: +# return str([str(step) for step in self.steps]) - def __repr(self) -> str: - return str(self) +# def __repr(self) -> str: +# return str(self)