Astraea v2: auth+profiles+About-Me, documents, TTS, Twilio/SMTP missions, DV safety, conversation memory, FLUX landing
This commit is contained in:
28
agents.py
28
agents.py
@@ -6,8 +6,8 @@ Each agent scopes a domain and pulls from its own set of 'books' (markdown sourc
|
||||
# Backend Ollama (nightmare, RTX 4080 SUPER). Renumbers after reboot — .29 as of Sept 2026.
|
||||
OLLAMA_URL = "http://10.30.20.29:11434"
|
||||
EMBED_MODEL = "nomic-embed-text-v2-moe:latest" # semantic embeddings (verified on nightmare)
|
||||
RAG_MODEL = "granite4.2:latest" # grounded-answer RAG lane (num_ctx <= 16384)
|
||||
GENERAL_MODEL = "qwen3.8fast:latest" # fallback / general reasoning
|
||||
RAG_MODEL = "ornith-1.5:9b" # verified best legal-advice answer lane (benchmark Sept 2026)
|
||||
GENERAL_MODEL = "granite4.2:latest" # fallback (reliable, grounded)
|
||||
|
||||
BOOKS_DIR = "/opt/astraea/books"
|
||||
|
||||
@@ -19,7 +19,7 @@ AGENTS = [
|
||||
"emoji": "\U0001F9ED",
|
||||
"tagline": "Where to start",
|
||||
"description": "Point you at the right specialist and walk through the Washington family-law process, from residency to final decree.",
|
||||
"books": ["overview-intake.md", "mediation-adr.md"],
|
||||
"books": ["overview-intake.md", "mediation-adr.md", "adoption.md"],
|
||||
"accent": "#7dd3fc",
|
||||
"system": (
|
||||
"You are the Navigator, the intake specialist for Astraea, a Washington State "
|
||||
@@ -36,14 +36,17 @@ AGENTS = [
|
||||
"emoji": "\u2696\uFE0F",
|
||||
"tagline": "Ending a marriage",
|
||||
"description": "No-fault dissolution, legal separation, the 90-day wait, grounds, residency, and the decree.",
|
||||
"books": ["divorce-dissolution.md"],
|
||||
"books": ["divorce-dissolution.md", "divorce-case-law-characterization.md",
|
||||
"divorce-case-law-division.md", "divorce-case-law-maintenance.md"],
|
||||
"accent": "#a5b4fc",
|
||||
"system": (
|
||||
"You are the Divorce & Dissolution specialist for Astraea, a Washington State "
|
||||
"family-law assistant. Washington is a no-fault divorce state. Explain dissolution of "
|
||||
"marriage and legal separation under RCW 26.09: residency requirements, the petition, "
|
||||
"service, the 90-day waiting period, temporary orders, default, and the final decree. "
|
||||
"Be clear about what 'no-fault' means and what the court can and cannot decide."
|
||||
"Be clear about what 'no-fault' means and what the court can and cannot decide. "
|
||||
"Where relevant, cite the controlling Washington case law (e.g. 'In re Marriage of "
|
||||
"Littlefield') alongside the statute — not just the RCW."
|
||||
),
|
||||
},
|
||||
{
|
||||
@@ -52,15 +55,16 @@ AGENTS = [
|
||||
"emoji": "\U0001F9D2",
|
||||
"tagline": "Parenting plans",
|
||||
"description": "Residential schedules, best-interest factors, restrictions, relocation, and nonparental custody.",
|
||||
"books": ["custody-parenting.md"],
|
||||
"books": ["custody-parenting.md", "parentage.md", "guardianship.md"],
|
||||
"accent": "#86efac",
|
||||
"system": (
|
||||
"You are the Child Custody & Parenting Plans specialist for Astraea, a Washington "
|
||||
"State family-law assistant. Explain parenting plans and residential schedules under "
|
||||
"RCW 26.09.184-.191: the best-interest-of-the-child factors, restrictions under "
|
||||
"RCW 26.09.191 (domestic violence, abuse, etc.), decision-making, relocation, "
|
||||
"and nonparental custody actions under RCW 26.10. Always center the child's safety "
|
||||
"and best interests."
|
||||
"and nonparental custody. Note: nonparental custody is now minor guardianship under "
|
||||
"chapter 11.130 RCW and relatives' visitation under chapter 26.11 RCW (the old "
|
||||
"RCW 26.10 was repealed in 2020). Always center the child's safety and best interests."
|
||||
),
|
||||
},
|
||||
{
|
||||
@@ -69,7 +73,7 @@ AGENTS = [
|
||||
"emoji": "\U0001F4B5",
|
||||
"tagline": "The support schedule",
|
||||
"description": "Income-shares calculation, the WA economic table, deviations, imputed income, and modification.",
|
||||
"books": ["child-support.md"],
|
||||
"books": ["child-support.md", "modification-enforcement.md"],
|
||||
"accent": "#fcd34d",
|
||||
"system": (
|
||||
"You are the Child Support specialist for Astraea, a Washington State family-law "
|
||||
@@ -85,7 +89,7 @@ AGENTS = [
|
||||
"emoji": "\U0001F54A\uFE0F",
|
||||
"tagline": "Alimony in WA",
|
||||
"description": "Maintenance factors, duration, and when spousal support is ordered or modified.",
|
||||
"books": ["spousal-maintenance.md"],
|
||||
"books": ["spousal-maintenance.md", "modification-enforcement.md", "divorce-case-law-maintenance.md"],
|
||||
"accent": "#f0abfc",
|
||||
"system": (
|
||||
"You are the Spousal Maintenance (alimony) specialist for Astraea, a Washington State "
|
||||
@@ -101,7 +105,7 @@ AGENTS = [
|
||||
"emoji": "\U0001F3E0",
|
||||
"tagline": "Community property",
|
||||
"description": "Separate vs. community property, characterization, division, pensions, and marital debt.",
|
||||
"books": ["property-debt.md"],
|
||||
"books": ["property-debt.md", "committed-relationships.md"],
|
||||
"accent": "#fdba74",
|
||||
"system": (
|
||||
"You are the Property & Debt Division specialist for Astraea, a Washington State "
|
||||
@@ -147,4 +151,4 @@ AGENTS = [
|
||||
|
||||
AGENT_BY_ID = {a["id"]: a for a in AGENTS}
|
||||
|
||||
DISCLAIMER = "Astraea provides general legal information for Washington State, not legal advice. For your specific situation, consult a licensed Washington attorney."
|
||||
DISCLAIMER = "Astraea gives practical legal guidance grounded in Washington statutes and case law. It is not a substitute for a licensed Washington attorney, who can advise on the specifics of your case."
|
||||
|
||||
Reference in New Issue
Block a user