AGENTS.md guide, Python 3.9 type compat fixes, NOC launchd verified
This commit is contained in:
@@ -3,3 +3,5 @@
|
||||
2026-08-03 21:38:19,445 [WARNING] orchestrator: Topic scoring failed: ollama_json() got an unexpected keyword argument 'temperature'
|
||||
2026-08-03 21:38:19,449 [INFO] orchestrator: Discovered 0 topics, stored top 25
|
||||
2026-08-03 21:38:30,350 [INFO] orchestrator: Starting trend discovery...
|
||||
2026-08-04 00:55:28,996 [INFO] orchestrator: Starting trend discovery...
|
||||
2026-08-04 00:56:33,717 [INFO] orchestrator: Starting trend discovery...
|
||||
|
||||
@@ -11,8 +11,7 @@ import logging
|
||||
from pathlib import Path
|
||||
from datetime import datetime, timedelta
|
||||
from dataclasses import dataclass, field, asdict
|
||||
from typing import Optional
|
||||
|
||||
from typing import Optional, Dict, List
|
||||
import requests
|
||||
|
||||
# ─── Config ───────────────────────────────────────────────────────
|
||||
@@ -795,7 +794,7 @@ def real_fact_check(article_text: str, topic_title: str) -> dict:
|
||||
|
||||
|
||||
# ─── Image Generator Hook ──────────────────────────────────────────
|
||||
def generate_article_image(title: str, vertical: str) -> str | None:
|
||||
def generate_article_image(title: str, vertical: str) -> Optional[str]:
|
||||
"""Generate a hero image for an article via FAL.ai, verify with vision model. Returns URL or None."""
|
||||
# Build a prompt that captures the article's essence
|
||||
prompt = f"""Dark atmospheric illustration for an article titled "{title}".
|
||||
@@ -841,7 +840,7 @@ Is the image relevant, coherent, and free of inappropriate content? Respond ONLY
|
||||
|
||||
# ─── Writing Pipeline ──────────────────────────────────────────────
|
||||
def write_article(topic_id: int, topic_title: str, vertical: str,
|
||||
knowledge_package: dict) -> dict | None:
|
||||
knowledge_package: dict) -> Optional[dict]:
|
||||
"""Multi-agent writing pipeline with format diversity, quality gate, and fact-check."""
|
||||
log.info(f"Writing article for topic #{topic_id}: {topic_title}")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user