A Juejin AI author describes three cleanup failures in an AgentScope script after its business flow completed and all seven evaluations passed. Calling run_until_complete() or pydantic-ai's run_sync() inside a running event loop raises “This event loop is already running,” while passing an extra argument to close_models() can raise a TypeError inside finally and hide the original exception. The recommended approach is one top-level asyncio.run() entry point, await internally, catch cleanup errors without rethrowing, and test exit behavior in a subprocess.
What problem it solves
Developers need abstractions that can accommodate increasingly agentic LLMs without limiting their reasoning and tool-use abilities through rigid prompts or opinionated orchestration. They also need a way to turn agent components into multi-tenant, multi-session applications with supporting infrastructure.
Key features
Composable agent building blocks — Compose agents from a…
What problem it solves
AI applications need isolated environments where agents can execute code, run commands, manage files, and operate browsers or desktops. Teams also need a consistent way to run these environments locally with Docker or on Kubernetes without switching between separate interfaces.
Key features
Agent working environments — Provide agents with isolated environments for command ex…
What problem it solves
Developers need to run AI models inside applications while handling model downloads, inference configuration, and chat sessions. The project presents local inference with data privacy and no inference costs as its deployment model.
Key features
High-level application API — The engine exposes a simple API for creating an engine, loading a model, opening a chat session, and re…