File size: 601 Bytes
cce8120
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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()