@tuttiai/types 0.1.0 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +16 -0
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -88,6 +88,10 @@ interface AgentConfig {
|
|
|
88
88
|
system_prompt: string;
|
|
89
89
|
voices: Voice[];
|
|
90
90
|
max_turns?: number;
|
|
91
|
+
/** Agent IDs this agent can delegate to via the orchestrator. */
|
|
92
|
+
delegates?: string[];
|
|
93
|
+
/** Role in the orchestration — orchestrator receives input first. */
|
|
94
|
+
role?: "orchestrator" | "specialist";
|
|
91
95
|
}
|
|
92
96
|
interface AgentResult {
|
|
93
97
|
session_id: string;
|
|
@@ -105,6 +109,8 @@ interface ScoreConfig {
|
|
|
105
109
|
agents: Record<string, AgentConfig>;
|
|
106
110
|
provider: LLMProvider;
|
|
107
111
|
default_model?: string;
|
|
112
|
+
/** Which agent is the entry point (default: "orchestrator"). */
|
|
113
|
+
entry?: string;
|
|
108
114
|
}
|
|
109
115
|
|
|
110
116
|
/** Session types for conversation state management. */
|
|
@@ -165,6 +171,16 @@ type TuttiEvent = {
|
|
|
165
171
|
agent_name: string;
|
|
166
172
|
session_id: string;
|
|
167
173
|
turn: number;
|
|
174
|
+
} | {
|
|
175
|
+
type: "delegate:start";
|
|
176
|
+
from: string;
|
|
177
|
+
to: string;
|
|
178
|
+
task: string;
|
|
179
|
+
} | {
|
|
180
|
+
type: "delegate:end";
|
|
181
|
+
from: string;
|
|
182
|
+
to: string;
|
|
183
|
+
output: string;
|
|
168
184
|
};
|
|
169
185
|
type TuttiEventType = TuttiEvent["type"];
|
|
170
186
|
type TuttiEventHandler<T extends TuttiEventType = TuttiEventType> = (event: Extract<TuttiEvent, {
|