a2790be421
fix: create corpus via REST API directly, bypassing SDK backend_config bug
...
SDK 1.153.1 always defaults to Spanner when backend_config is omitted,
and crashes when it's provided. Use REST POST directly with
vectorDbConfig.ragManagedDb set to force serverless.
2026-05-24 19:11:25 +02:00
2beb6a359d
fix: drop backend_config from create_corpus — rely on pre-flight PATCH alone
...
SDK 1.153.1 has a bug in set_backend_config where it calls .CopyFrom()
on RagManagedDb which is not a real protobuf message.
The project-level ragEngineConfig PATCH already sets basic tier,
so passing backend_config is unnecessary and breaks corpus creation.
2026-05-24 19:04:31 +02:00
46b3c52607
fix: RagManagedDb() takes no arguments in SDK 1.153.1
2026-05-24 19:02:43 +02:00
582967a994
fix: use vector_db=RagManagedDb(tier=1) — correct field names for SDK 1.153.1
...
RagVectorDbConfig takes vector_db= not rag_managed_db=.
The db type is RagManagedDb, not RagManagedDbConfig.
2026-05-24 18:58:00 +02:00
ad8597f434
fix: use tier=1 int instead of RagManagedDbConfig.Tier.BASIC enum
...
The Tier enum is not available in the installed SDK version.
Use integer value 1 (BASIC) directly instead.
2026-05-24 18:44:22 +02:00
814dd89ca6
fix: explicitly set serverless RAG backend + improve error handling
...
- Pass RagVectorDbConfig with RagManagedDbConfig basic tier explicitly
to avoid Spanner allowlist errors on new projects
- Add pre-flight ensure_serverless_engine_config() via REST PATCH
- Cleaner error messages with actionable hints
- Idempotent: skips creation if corpus already exists
2026-05-24 18:11:27 +02:00
d0512f5ced
chore: add base Docker image to speed up deploys
...
- Add agents/core-logic/Dockerfile.base with heavy deps pre-baked
- Update agents/core-logic/Dockerfile to build FROM base image
- Update cloudbuild.yaml with step to build/push base (manual only)
- Typical deploy time reduction: ~3 min → ~30 sec
2026-05-24 17:04:42 +02:00
1cba5166db
fix: ADK 1.x Runner pattern + gemini-3.5-flash for A+ reasoning
2026-05-24 16:44:04 +02:00
497509370e
feat: add A/A+ mode routing to agent.py (OPAX)
2026-05-24 16:34:34 +02:00
60c7aff04d
fix: remove backend_config — Serverless is default in us-central1
2026-05-24 16:15:32 +02:00
a5fd5f58e8
fix: switch RAG corpus to Serverless mode (RagManagedDb) in us-central1
2026-05-24 16:13:24 +02:00
09dcb4d1a2
feat: OPAX heavy mode + LLM-ruting oppdatert + RAG serverless fix\n\n- MASTERPLAN.md: ny LLM-RUTINGSSTRATEGI-seksjon med OPAX Heavy Mode\n- masterplan-summary.md: oppdatert med heavy mode-referanser\n- setup_corpus.py: fjernet backend_config (Serverless mode, ingen Spanner)\n- sesjon-logg: 2026-05-24_opax-heavy-mode-llm-ruting-rag.md
2026-05-24 14:07:26 +00:00
0248081b83
fix: agent.py — bruk riktig import-path for VertexAiRagRetrieval (ADK 1.x)
2026-05-24 15:12:08 +02:00
2681d85ef4
feat: enforce Norwegian (Bokmål) response language in agent system instruction
2026-05-24 06:24:21 +02:00
69eab2c113
docs: oppdater README, IAM-docs, legg til rag/memory/eval mapper og cost-guard
2026-05-23 20:54:05 +00:00
ffe4ec1c63
fix: await get_session and create_session (async ADK 1.x API)
2026-05-23 21:09:59 +02:00
4ef0683c7c
fix: use try/except to create session if get_session raises in ADK 1.x
2026-05-23 20:45:50 +02:00
7e1af38474
fix: auto-create session if not found in /run endpoint
2026-05-23 20:33:39 +02:00
1122af66d0
fix: point uvicorn entrypoint to app:app (not main:app)
2026-05-23 20:16:24 +02:00
6521a4c101
fix: replace adk deploy cloud_run with gcloud run deploy (compatible with ADK 1.x + Cloud Shell)
2026-05-23 19:55:16 +02:00
c411a8af88
fix: pin google-adk to 1.x to be compatible with google-cloud-aiplatform[adk,agent_engines]
2026-05-23 19:53:51 +02:00
c8e51135ac
fix: remove conflicting vertexai pin — bundled in google-cloud-aiplatform>=1.112.0
2026-05-23 08:52:03 +02:00
4814447da4
feat: add agents/core-logic/app.py — FastAPI Cloud Run entrypoint
2026-05-23 02:46:41 +02:00
ce28d34f3d
feat: add agents/tests/unit/test_agent.py — 8 pytest unit tests
...
Add unit tests for ADK orchestrator agent functionality, including environment variable checks and import validations.
2026-05-23 02:45:50 +02:00
34ba75a4a2
feat: push all remaining files — agents/, docs/, architecture/, cloudbuild.yaml, README
2026-05-23 02:37:39 +02:00