parent
9a4d748fb5
commit
ef2ae6d94a
@ -0,0 +1,2 @@
|
|||||||
|
from swarms.agents.workers.multi_modal.multi_modal_agent import MultiModalVisualAgent
|
||||||
|
from swarms.agents.workers.multi_modal.omni_agent import chat_huggingface
|
@ -0,0 +1,17 @@
|
|||||||
|
from swarms.agents.workers.multi_modal.multi_modal_agent import MultiModalVisualAgent
|
||||||
|
from langchain.tools import BaseTool
|
||||||
|
|
||||||
|
class MultiModalVisualAgentTool(BaseTool):
|
||||||
|
name = "multi_visual_agent"
|
||||||
|
description = "Multi-Modal Visual agent tool"
|
||||||
|
|
||||||
|
def __init__(self, agent: MultiModalVisualAgent):
|
||||||
|
self.agent = agent
|
||||||
|
|
||||||
|
def _run(self, text: str) -> str:
|
||||||
|
#run the multi-modal visual agent with the give task
|
||||||
|
return self.agent.run_text(text)
|
||||||
|
|
||||||
|
|
||||||
|
multimodal_agent = MultiModalVisualAgent()
|
||||||
|
multimodal_agent_tool = MultiModalVisualAgentTool(multimodal_agent)
|
Loading…
Reference in new issue