Skip to content

feat: enhance content agent with Ollama fallback + tests (#5) - #96

Open
lena2099 wants to merge 1 commit into
Nexussyn:mainfrom
lena2099:agent/lena2099/issue-5
Open

feat: enhance content agent with Ollama fallback + tests (#5)#96
lena2099 wants to merge 1 commit into
Nexussyn:mainfrom
lena2099:agent/lena2099/issue-5

Conversation

@lena2099

@lena2099 lena2099 commented Aug 9, 2026

Copy link
Copy Markdown

What

  • Added Ollama local LLM fallback to callLLM() β€” zero-cost, no rate limit
  • LLM chain: Groq (fast, 6000/min) β†’ Gemini Flash (1500/day) β†’ Ollama (always available)
  • 4 test cases covering interface shape, tweet constraints, error handling, hashtag spam guard

Acceptance Criteria

  • generateContent(bounty_id) returns {tweet, thread, blog_post}
  • Uses free LLM (Groq, Gemini Flash, or local Ollama)
  • Content stored in outreach_sent table (existing implementation)
  • Content is unique per bounty (LLM generates fresh each call)
  • Tests with mock bounty data

Files

  • src/agents/content-agent.ts β€” +Ollama fallback
  • tests/content-agent.test.ts β€” 4 test cases (NEW)

Wallet

Wallet: 0x785c5E2713cdC2F232503661CA2302B7a6B77a4d β€” Ready for USDC payout.

Closes #5

- Add Ollama local fallback to callLLM (zero-cost, no rate limit)
- LLM priority: Groq β†’ Gemini Flash β†’ Ollama local
- Add 4 test cases: interface validation, tweet constraints, missing bounty error
- ContentOutput shape: tweet (≀280), thread (exactly 5), blog_post (β‰₯100 words)
- hashtag spam guard: max 3 hashtags

Closes Nexussyn#5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[AGENT-TASK] Content-generation agent β€” auto-posts from bounty outcomes

1 participant