add_os_symphony (#399)

This commit is contained in:
Bowen Yang
2025-12-23 14:30:44 +08:00
committed by GitHub
parent ac31778ee3
commit f593f35b1c
26 changed files with 6674 additions and 0 deletions

View File

@@ -0,0 +1,17 @@
from typing import Dict, Optional
from mm_agents.os_symphony.core.mllm import LMMAgent
class BaseModule:
def __init__(self, engine_params: Dict = None, platform: str = "Linux"):
self.engine_params = engine_params
self.platform = platform
def _create_agent(
self, system_prompt: str = None, engine_params: Optional[Dict] = None
) -> LMMAgent:
"""Create a new LMMAgent instance"""
agent = LMMAgent(engine_params or self.engine_params)
if system_prompt:
agent.add_system_prompt(system_prompt)
return agent