repositories
loading repo index
repositories
loading repo index
repository
loading code, commits, and activity
public Clawd ADK gateway launch mirror
stars
latest
clone command
git clone gitlawb://did:key:z6Mkq5mY...iFZ5/my-project-publ...git clone gitlawb://did:key:z6Mkq5mY.../my-project-publ...2fa351d6docs: add automaton and perps launch sources16d ago| #1 | /** |
| #2 | * DeepSeek Multi-Agent Backroom Bridge |
| #3 | * |
| #4 | * Wraps the CLAWD Automaton agent loop with the DeepSeek multi-agent |
| #5 | * backroom pattern. Creates two agents (logical analyst + satirical |
| #6 | * commentator) that converse with each other using DeepSeek thinking mode. |
| #7 | * |
| #8 | * This bridges the Python FastAPI backroom into the TypeScript automaton, |
| #9 | * allowing the automaton to spawn and orchestrate multi-agent conversations. |
| #10 | */ |
| #11 | import type { InferenceClient } from "../types.js"; |
| #12 | /** |
| #13 | * Configuration for a backroom agent persona. |
| #14 | */ |
| #15 | export interface BackroomAgentConfig { |
| #16 | name: string; |
| #17 | systemPrompt: string; |
| #18 | model?: string; |
| #19 | temperature?: number; |
| #20 | } |
| #21 | export interface BackroomTurn { |
| #22 | id: string; |
| #23 | agentName: string; |
| #24 | content: string; |
| #25 | reasoning?: string; |
| #26 | timestamp: string; |
| #27 | } |
| #28 | export interface BackroomSession { |
| #29 | id: string; |
| #30 | turns: BackroomTurn[]; |
| #31 | topic: string; |
| #32 | createdAt: string; |
| #33 | completedAt?: string; |
| #34 | } |
| #35 | /** |
| #36 | * Default agent personas for the backroom. |
| #37 | */ |
| #38 | export declare const LOGICAL_ANALYST: BackroomAgentConfig; |
| #39 | export declare const SATIRICAL_COMMENTATOR: BackroomAgentConfig; |
| #40 | /** |
| #41 | * Run a single turn of the backroom conversation. |
| #42 | * Returns the agent's response, with optional reasoning content. |
| #43 | */ |
| #44 | export declare function runBackroomTurn(inference: InferenceClient, agent: BackroomAgentConfig, conversation: BackroomTurn[], topic: string): Promise<BackroomTurn>; |
| #45 | /** |
| #46 | * Run a full backroom conversation session between agents. |
| #47 | * Agents take turns responding to each other. |
| #48 | */ |
| #49 | export declare function runBackroomSession(inference: InferenceClient, agents: [BackroomAgentConfig, BackroomAgentConfig], topic: string, maxTurns?: number): Promise<BackroomSession>; |
| #50 | /** |
| #51 | * Summarize a backroom session into a text digest. |
| #52 | */ |
| #53 | export declare function summarizeBackroomSession(session: BackroomSession): string; |
| #54 | //# sourceMappingURL=backroom.d.ts.map |