refactor: separa composição OCI e inicialização do DeepAgents

This commit is contained in:
alex alves
2026-11-05 16:39:01 -03:00
parent 85fc4c4d46
commit e319b4089c
10 changed files with 508 additions and 153 deletions

View File

@@ -7,7 +7,7 @@ import asyncio
import os
from contextlib import aclosing
from voice_assistant.agent.deep_agent import DeepAgentsAdapter
from voice_assistant.agent.oci_deep_agent import OCIDeepAgentsAdapter
async def main():
@@ -16,12 +16,13 @@ async def main():
if not compartment_id:
raise RuntimeError("OCI_COMPARTMENT_ID is required.")
adapter = DeepAgentsAdapter(
adapter = OCIDeepAgentsAdapter(
region="sa-vinhedo-1",
compartment_id=compartment_id,
model_id="openai.gpt-4o-mini",
temperature=0.3,
max_completion_tokens=256,
timeout_seconds=60.0,
)
try: