UPDATE
This commit is contained in:
@@ -6,6 +6,7 @@ from typing import Any, Literal
|
||||
|
||||
from pydantic import BaseModel, Field, ValidationError
|
||||
|
||||
from farm_data.services import build_ai_farm_snapshot
|
||||
from rag.api_provider import get_chat_client
|
||||
from rag.chat import (
|
||||
_complete_audit_log,
|
||||
@@ -124,7 +125,14 @@ class FertilizationPlanParserService:
|
||||
"partial_plan": normalized_partial,
|
||||
"required_core_fields": CORE_FIELDS,
|
||||
"service": "fertilization_plan_parser",
|
||||
"endpoint_policy": "parser_first",
|
||||
}
|
||||
if farm_uuid:
|
||||
# Parser-first endpoint: farm context is optional enrichment only.
|
||||
structured_context["farm_context_source_metadata"] = {
|
||||
"source": "build_ai_farm_snapshot",
|
||||
"optional": True,
|
||||
}
|
||||
|
||||
rag_query = self._build_retrieval_query(
|
||||
message=normalized_message,
|
||||
|
||||
Reference in New Issue
Block a user