website-builder-backend / agent_logic.py
David Prince
fix: add all missing local module stubs (remote_mcp_registry, mcp_auth, mcp_transport, etc)
cce8120
Raw
History Blame Contribute Delete
601 Bytes
import asyncio
from google.antigravity import Agent, LocalAgentConfig
async def agentic_workflow(user_query):
# This matches the documentation for Antigravity you provided
config = LocalAgentConfig(
system_instructions="You are the lead architect of DOLOR3V Studio. Handle file generation and build triggers.",
vertex=True,
project="dolor3v-unified-backend"
)
async with Agent(config) as agent:
# The agent decides whether to call the builder or the design-tool
response = await agent.chat(user_query)
return await response.text()