feat: wire real service agents into chat with LLM tool dispatch + Rivet proxy fix #3

Merged
puter merged 4 commits from feat/central-gitea-unified-actor into main 2026-06-01 09:26:20 +00:00
Owner

Wire All 4 Microservice Agents Into Chat

Wires all 4 microservice-backed agents into the chat so the LLM can call real services and return session URLs.


Changes

New

  • src/routes/chat.ts

    • Added a direct HTTP chat endpoint.

    • When the LLM calls:

      • start_interview_session
      • analyze_resume
      • start_roleplay_session
      • compute_qscore
    • The route executes real service probes and returns live session URLs.


Fixed

  • src/index.ts

    • Rivet proxy now forwards requests to the engine at localhost:6420
      instead of using registry.handler().

    • Prevents the:

      Runtime already started as runner
      

      conflict.

  • src/actors/user-actor.ts

    • receiveMessage() now returns:

      {
        reply,
        sessions: []
      }
      
    • Includes per-module session URLs in responses.

  • docker-compose.yml

    • Fixed:

      • Gitea health check port
      • Port mapping
      • A2A_ALLOWED_KEY default value
  • src/config.ts

    • Added:

      resumeServiceUrl
      
    • Configured to use port 8002.


Rewritten

  • prompts/system.txt

    • Reworked into a conversational step-by-step flow.

    • Added explicit rule:

      CALL THE TOOL IMMEDIATELY


Updated

  • agents/*.md (6 files)

    • Updated:

      • Domain descriptions
      • Trigger phrases
      • Agent boundaries

Verified

Agent Service Result
Resume (Mira) resume-builder:8002 Real analysis
Sara interview-service:8007 Real Gemini session + URL
Emily roleplay-service:8008 Real roleplay session + URL
Quinn qscore-service:8000 Real Q-Score (~84)

Outcome

The chat system can now:

  • Trigger real backend agent services directly from LLM tool calls
  • Return live session URLs
  • Maintain structured multi-agent responses
  • Avoid Rivet runtime conflicts
  • Support end-to-end conversational workflows across all 4 agents
# Wire All 4 Microservice Agents Into Chat Wires all 4 microservice-backed agents into the chat so the LLM can call real services and return session URLs. --- ## Changes ### New * `src/routes/chat.ts` * Added a direct HTTP chat endpoint. * When the LLM calls: * `start_interview_session` * `analyze_resume` * `start_roleplay_session` * `compute_qscore` * The route executes real service probes and returns live session URLs. --- ### Fixed * `src/index.ts` * Rivet proxy now forwards requests to the engine at `localhost:6420` instead of using `registry.handler()`. * Prevents the: ```txt Runtime already started as runner ``` conflict. * `src/actors/user-actor.ts` * `receiveMessage()` now returns: ```ts { reply, sessions: [] } ``` * Includes per-module session URLs in responses. * `docker-compose.yml` * Fixed: * Gitea health check port * Port mapping * `A2A_ALLOWED_KEY` default value * `src/config.ts` * Added: ```ts resumeServiceUrl ``` * Configured to use port `8002`. --- ### Rewritten * `prompts/system.txt` * Reworked into a conversational step-by-step flow. * Added explicit rule: > CALL THE TOOL IMMEDIATELY --- ### Updated * `agents/*.md` (6 files) * Updated: * Domain descriptions * Trigger phrases * Agent boundaries --- ## Verified | Agent | Service | Result | | ------------- | ------------------------ | --------------------------- | | Resume (Mira) | `resume-builder:8002` | Real analysis | | Sara | `interview-service:8007` | Real Gemini session + URL | | Emily | `roleplay-service:8008` | Real roleplay session + URL | | Quinn | `qscore-service:8000` | Real Q-Score (~84) | --- ## Outcome The chat system can now: * Trigger real backend agent services directly from LLM tool calls * Return live session URLs * Maintain structured multi-agent responses * Avoid Rivet runtime conflicts * Support end-to-end conversational workflows across all 4 agents
dv added 3 commits 2026-05-28 13:12:49 +00:00
- Added workflow job actor to manage job application workflows.
- Implemented agent catalog for various workflow agents.
- Created service agents for interview, roleplay, and Q-Score functionalities.
- Enhanced user authentication to automatically create users if they do not exist.
- Updated configuration to support new LLM provider and API keys.
- Introduced new routes for agent and workflow management.
- Refactored Docker management to improve Gitea admin user creation and token generation.
- Removed deprecated Anthropics SDK integration.
- Added ensureOrg and ensureOrgRepo methods to GiteaClient for centralized organization and repository management.
- Updated main application flow to ensure central Gitea readiness at startup.
- Introduced prompt-loader for dynamic loading of agent modules and system prompts from disk.
- Refactored agent routes to return sub-agent module catalog.
- Modified git routes to interact with a central Gitea instance instead of per-user containers.
- Updated workflow routes to utilize a unified user actor per user, streamlining job application workflows.
- Improved service agent handling with a new lightweight reference type.
services and return session URLs.
dv added 1 commit 2026-05-29 20:53:08 +00:00
puter merged commit 9ddbb4a8e5 into main 2026-06-01 09:26:20 +00:00
puter deleted branch feat/central-gitea-unified-actor 2026-06-01 09:26:20 +00:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: growqr-app/growqr-backend#3
No description provided.