INNER CODE UNIT · Python

main

CaviraOSS/OpenMemory · integrations/frameworks/autogen/main.py:22

async def main() -> None:
    longmemory_command = os.environ.get(
        "LONGMEMORY_COMMAND",
        "longmemory.cmd" if os.name == "nt" else "longmemory",
    )
    model_client = OpenAIChatCompletionClient(
        model=os.environ.get("LONGMEMORY_MODEL", "gpt-4o-mini"),
    )
    server = StdioServerParams(
        command=longmemory_command,
        args=["mcp", "--project", "current"],
        read_timeout_seconds=30,
    )

    try:
        async with McpWorkbench(server_params=server) as workbench:
            assistant = AssistantAgent(
                name="longmemory_assistant",

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…