CubeLoop — a Pythonic, async-native agent harness core designed for high performance, readability, and production-grade persistence.
Python agent-frameworkagent-harnessagent-runtimeagentic-aiai-agentsai-frameworkanthropicharnessharness-engineeringharness-frameworklanggraphlanggraph-alternativellmmcpopenaipi-agentpi-agent-corepythonpython-agent
fix(docs): correct hero Agent usage — use provider.model() not Model()
xf gongf005567a53e4
diff --git a/website/src/components/Home/HelloAgent.tsx b/website/src/components/Home/HelloAgent.tsxindex c77013d..fb878cf 100644--- a/website/src/components/Home/HelloAgent.tsx+++ b/website/src/components/Home/HelloAgent.tsx@@ -5,7 +5,7 @@ import { useIsZhHans } from '@site/src/hooks/useIsZhHans';import styles from './HelloAgent.module.css';const SAMPLE = `import asyncio-from cubepi import Agent, Model, tool+from cubepi import Agent, toolfrom cubepi.providers.anthropic import AnthropicProviderprovider = AnthropicProvider(api_key="sk-...")@@ -16,8 +16,7 @@ async def get_weather(city: str) -> str:return f"72°F and sunny in {city}"agent = Agent(- provider=provider,- model=Model(id="claude-sonnet-4-6", provider="anthropic"),+ model=provider.model("claude-sonnet-4-6"),tools=[get_weather],system_prompt="You are a helpful weather assistant.",)