Skip to content

[ai-core] feat: langchain4j-based local mock implementations #64

Description

@Schmarvinius

Scope: enable token-free local & CI testing.

  • Replace MockAICoreServiceImpl.inferenceClient UnsupportedOperationException with a langchain4j-backed ApiClient for local models.
  • Provide a deterministic MockRecommendationClient (drop Random) optionally backed by langchain4j; add a class-level javadoc explaining the prediction algorithm.
  • Externalize model mapping in application.yaml (sketch from agoerler):
    cds.ai.core.client:
    • name: myRpt1Client
      model: RPT1
      → enables @qualifier("myRpt1Client") ApiClient injection and cheap models in test, expensive in prod.
  • Document local-model usage in both READMEs.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions