2026-01-15 00:26:33 +05:00
|
|
|
version: v0.3.0
|
|
|
|
|
|
2026-01-28 21:10:07 +05:00
|
|
|
# Define the standalone credit risk agents
|
2026-01-15 00:26:33 +05:00
|
|
|
agents:
|
2026-01-28 21:10:07 +05:00
|
|
|
- id: loan_intake_agent
|
|
|
|
|
#url: http://localhost:10530/v1/agents/intake/chat/completions
|
|
|
|
|
url: http://host.docker.internal:10530/v1/agents/intake/chat/completions
|
|
|
|
|
- id: risk_scoring_agent
|
|
|
|
|
#url: http://localhost:10530/v1/agents/risk/chat/completions
|
|
|
|
|
url: http://host.docker.internal:10530/v1/agents/risk/chat/completions
|
|
|
|
|
- id: policy_compliance_agent
|
|
|
|
|
#url: http://localhost:10530/v1/agents/policy/chat/completions
|
|
|
|
|
url: http://host.docker.internal:10530/v1/agents/policy/chat/completions
|
|
|
|
|
- id: decision_memo_agent
|
|
|
|
|
#url: http://localhost:10530/v1/agents/memo/chat/completions
|
|
|
|
|
url: http://host.docker.internal:10530/v1/agents/memo/chat/completions
|
2026-01-15 00:26:33 +05:00
|
|
|
|
2026-01-16 22:54:02 +05:00
|
|
|
# HTTP filter for PII redaction and prompt injection detection
|
2026-01-15 00:26:33 +05:00
|
|
|
filters:
|
|
|
|
|
- id: pii_security_filter
|
2026-01-16 22:54:02 +05:00
|
|
|
#url: http://localhost:10550/v1/tools/pii_security_filter
|
|
|
|
|
url: http://host.docker.internal:10550/v1/tools/pii_security_filter
|
|
|
|
|
type: http
|
2026-01-15 00:26:33 +05:00
|
|
|
|
|
|
|
|
# LLM providers with model routing
|
|
|
|
|
model_providers:
|
|
|
|
|
- model: openai/gpt-4o
|
|
|
|
|
access_key: $OPENAI_API_KEY
|
|
|
|
|
default: true
|
|
|
|
|
- model: openai/gpt-4o-mini
|
|
|
|
|
access_key: $OPENAI_API_KEY
|
|
|
|
|
|
2026-01-16 22:54:02 +05:00
|
|
|
# ToDo: Debug model aliases
|
2026-01-15 00:26:33 +05:00
|
|
|
# Model aliases for semantic naming
|
|
|
|
|
model_aliases:
|
|
|
|
|
risk_fast:
|
|
|
|
|
target: openai/gpt-4o-mini
|
|
|
|
|
risk_reasoning:
|
|
|
|
|
target: openai/gpt-4o
|
|
|
|
|
|
|
|
|
|
# Listeners
|
|
|
|
|
listeners:
|
|
|
|
|
# Agent listener for routing credit risk requests
|
|
|
|
|
- type: agent
|
|
|
|
|
name: credit_risk_service
|
|
|
|
|
port: 8001
|
|
|
|
|
router: plano_orchestrator_v1
|
|
|
|
|
address: 0.0.0.0
|
|
|
|
|
agents:
|
2026-01-28 21:10:07 +05:00
|
|
|
- id: loan_intake_agent
|
2026-01-15 00:26:33 +05:00
|
|
|
description: |
|
2026-01-28 21:10:07 +05:00
|
|
|
Loan Intake Agent - Extracts and normalizes loan application data for downstream analysis.
|
2026-01-15 00:26:33 +05:00
|
|
|
|
|
|
|
|
CAPABILITIES:
|
2026-01-28 21:10:07 +05:00
|
|
|
* Normalize applicant data and calculate derived fields (e.g., DTI)
|
|
|
|
|
* Identify missing or inconsistent fields
|
|
|
|
|
* Produce structured intake JSON for other agents
|
2026-01-15 00:26:33 +05:00
|
|
|
|
|
|
|
|
USE CASES:
|
2026-01-28 21:10:07 +05:00
|
|
|
* "Normalize this loan application"
|
|
|
|
|
* "Extract and validate applicant data"
|
|
|
|
|
|
|
|
|
|
When requests focus on intake or data normalization for loan applications, route here.
|
|
|
|
|
filter_chain:
|
|
|
|
|
- pii_security_filter
|
|
|
|
|
- id: risk_scoring_agent
|
|
|
|
|
description: |
|
|
|
|
|
Risk Scoring Agent - Produces risk band, confidence score, and top drivers.
|
|
|
|
|
|
|
|
|
|
CAPABILITIES:
|
|
|
|
|
* Evaluate credit score, DTI, delinquencies, utilization
|
|
|
|
|
* Assign LOW/MEDIUM/HIGH risk bands with confidence
|
|
|
|
|
* Explain top 3 risk drivers with evidence
|
|
|
|
|
|
|
|
|
|
USE CASES:
|
|
|
|
|
* "Score the risk for this applicant"
|
|
|
|
|
* "Provide risk band and drivers"
|
|
|
|
|
|
|
|
|
|
When requests focus on risk scoring or drivers, route here.
|
|
|
|
|
filter_chain:
|
|
|
|
|
- pii_security_filter
|
|
|
|
|
- id: policy_compliance_agent
|
|
|
|
|
description: |
|
|
|
|
|
Policy Compliance Agent - Checks lending policy rules and required documents.
|
|
|
|
|
|
|
|
|
|
CAPABILITIES:
|
|
|
|
|
* Verify KYC, income, and address checks
|
|
|
|
|
* Flag policy exceptions (DTI, credit score, delinquencies)
|
|
|
|
|
* Determine required documents by risk band
|
|
|
|
|
|
|
|
|
|
USE CASES:
|
|
|
|
|
* "Check policy compliance"
|
|
|
|
|
* "List required documents"
|
|
|
|
|
|
|
|
|
|
When requests focus on policy checks or exceptions, route here.
|
|
|
|
|
filter_chain:
|
|
|
|
|
- pii_security_filter
|
|
|
|
|
- id: decision_memo_agent
|
|
|
|
|
description: |
|
|
|
|
|
Decision Memo Agent - Summarizes findings and recommends actions.
|
|
|
|
|
|
|
|
|
|
CAPABILITIES:
|
|
|
|
|
* Create concise decision memos
|
|
|
|
|
* Recommend APPROVE/CONDITIONAL_APPROVE/REFER/REJECT
|
|
|
|
|
|
|
|
|
|
USE CASES:
|
|
|
|
|
* "Draft a decision memo"
|
|
|
|
|
* "Recommend a credit decision"
|
|
|
|
|
|
|
|
|
|
When requests focus on final memo or recommendation, route here.
|
2026-01-15 00:26:33 +05:00
|
|
|
filter_chain:
|
|
|
|
|
- pii_security_filter
|
|
|
|
|
|
|
|
|
|
# Model listener for internal LLM gateway (used by agents)
|
|
|
|
|
- type: model
|
|
|
|
|
name: llm_gateway
|
|
|
|
|
address: 0.0.0.0
|
|
|
|
|
port: 12000
|
|
|
|
|
|
|
|
|
|
# OpenTelemetry tracing
|
|
|
|
|
tracing:
|
|
|
|
|
random_sampling: 100
|