@wundr.io/autogen-orchestrator 1.0.3
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/README.md +1088 -0
- package/dist/group-chat.d.ts +327 -0
- package/dist/group-chat.d.ts.map +1 -0
- package/dist/group-chat.js +724 -0
- package/dist/group-chat.js.map +1 -0
- package/dist/index.d.ts +16 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +69 -0
- package/dist/index.js.map +1 -0
- package/dist/nested-chat.d.ts +296 -0
- package/dist/nested-chat.d.ts.map +1 -0
- package/dist/nested-chat.js +600 -0
- package/dist/nested-chat.js.map +1 -0
- package/dist/speaker-selection.d.ts +195 -0
- package/dist/speaker-selection.d.ts.map +1 -0
- package/dist/speaker-selection.js +569 -0
- package/dist/speaker-selection.js.map +1 -0
- package/dist/termination.d.ts +237 -0
- package/dist/termination.d.ts.map +1 -0
- package/dist/termination.js +566 -0
- package/dist/termination.js.map +1 -0
- package/dist/types.d.ts +1248 -0
- package/dist/types.d.ts.map +1 -0
- package/dist/types.js +201 -0
- package/dist/types.js.map +1 -0
- package/package.json +59 -0
- package/src/group-chat.ts +980 -0
- package/src/index.ts +145 -0
- package/src/nested-chat.ts +795 -0
- package/src/speaker-selection.ts +794 -0
- package/src/termination.ts +704 -0
- package/src/types.ts +876 -0
package/src/index.ts
ADDED
|
@@ -0,0 +1,145 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @wundr/autogen-orchestrator - AutoGen-style Multi-Agent Orchestration
|
|
3
|
+
*
|
|
4
|
+
* Implements conversational patterns for coordinating multiple AI agents in a
|
|
5
|
+
* group chat setting with configurable speaker selection, termination conditions,
|
|
6
|
+
* and nested chat support.
|
|
7
|
+
*
|
|
8
|
+
* @packageDocumentation
|
|
9
|
+
*/
|
|
10
|
+
|
|
11
|
+
// ============================================================================
|
|
12
|
+
// Core Group Chat
|
|
13
|
+
// ============================================================================
|
|
14
|
+
|
|
15
|
+
export {
|
|
16
|
+
GroupChatManager,
|
|
17
|
+
GroupChatBuilder,
|
|
18
|
+
GroupChatEvents,
|
|
19
|
+
ResponseGenerator,
|
|
20
|
+
createParticipant,
|
|
21
|
+
} from './group-chat';
|
|
22
|
+
|
|
23
|
+
// ============================================================================
|
|
24
|
+
// Speaker Selection
|
|
25
|
+
// ============================================================================
|
|
26
|
+
|
|
27
|
+
export {
|
|
28
|
+
createSpeakerSelector,
|
|
29
|
+
SpeakerSelectionManager,
|
|
30
|
+
RoundRobinSelector,
|
|
31
|
+
RandomSelector,
|
|
32
|
+
LLMSelector,
|
|
33
|
+
PrioritySelector,
|
|
34
|
+
ManualSelector,
|
|
35
|
+
AutoSelector,
|
|
36
|
+
} from './speaker-selection';
|
|
37
|
+
|
|
38
|
+
// ============================================================================
|
|
39
|
+
// Termination Handling
|
|
40
|
+
// ============================================================================
|
|
41
|
+
|
|
42
|
+
export {
|
|
43
|
+
TerminationHandler,
|
|
44
|
+
createTerminationHandler,
|
|
45
|
+
TerminationManager,
|
|
46
|
+
TerminationPresets,
|
|
47
|
+
MaxRoundsHandler,
|
|
48
|
+
MaxMessagesHandler,
|
|
49
|
+
KeywordHandler,
|
|
50
|
+
TimeoutHandler,
|
|
51
|
+
FunctionHandler,
|
|
52
|
+
ConsensusHandler,
|
|
53
|
+
CustomHandler,
|
|
54
|
+
ConsensusConfig,
|
|
55
|
+
} from './termination';
|
|
56
|
+
|
|
57
|
+
// ============================================================================
|
|
58
|
+
// Nested Chat
|
|
59
|
+
// ============================================================================
|
|
60
|
+
|
|
61
|
+
export {
|
|
62
|
+
NestedChatManager,
|
|
63
|
+
NestedChatConfigBuilder,
|
|
64
|
+
NestedChatEvents,
|
|
65
|
+
} from './nested-chat';
|
|
66
|
+
|
|
67
|
+
// ============================================================================
|
|
68
|
+
// Types and Schemas
|
|
69
|
+
// ============================================================================
|
|
70
|
+
|
|
71
|
+
export {
|
|
72
|
+
// Message Types
|
|
73
|
+
Message,
|
|
74
|
+
MessageRole,
|
|
75
|
+
MessageStatus,
|
|
76
|
+
ContentType,
|
|
77
|
+
MessageMetadata,
|
|
78
|
+
FunctionCall,
|
|
79
|
+
|
|
80
|
+
// Participant Types
|
|
81
|
+
ChatParticipant,
|
|
82
|
+
ParticipantType,
|
|
83
|
+
ParticipantStatus,
|
|
84
|
+
ParticipantMetadata,
|
|
85
|
+
ModelConfig,
|
|
86
|
+
FunctionDefinition,
|
|
87
|
+
|
|
88
|
+
// Configuration Types
|
|
89
|
+
GroupChatConfig,
|
|
90
|
+
SpeakerSelectionConfig,
|
|
91
|
+
SpeakerSelectionMethod,
|
|
92
|
+
TransitionRule,
|
|
93
|
+
|
|
94
|
+
// Termination Types
|
|
95
|
+
TerminationCondition,
|
|
96
|
+
TerminationConditionType,
|
|
97
|
+
TerminationConditionValue,
|
|
98
|
+
TerminationResult,
|
|
99
|
+
TerminationEvaluator,
|
|
100
|
+
ConsensusConfigType,
|
|
101
|
+
|
|
102
|
+
// Nested Chat Types
|
|
103
|
+
NestedChatConfig,
|
|
104
|
+
NestedChatTrigger,
|
|
105
|
+
NestedChatTriggerValue,
|
|
106
|
+
NestedChatConditionFn,
|
|
107
|
+
NestedChatResult,
|
|
108
|
+
SummaryMethod,
|
|
109
|
+
|
|
110
|
+
// Result Types
|
|
111
|
+
ChatResult,
|
|
112
|
+
ChatStatus,
|
|
113
|
+
ChatMetrics,
|
|
114
|
+
ChatError,
|
|
115
|
+
ChatContext,
|
|
116
|
+
|
|
117
|
+
// Speaker Selection Types
|
|
118
|
+
SpeakerSelectionResult,
|
|
119
|
+
SpeakerSelectionStrategy,
|
|
120
|
+
|
|
121
|
+
// Event Types
|
|
122
|
+
ChatEvent,
|
|
123
|
+
ChatEventType,
|
|
124
|
+
ChatEventDataMap,
|
|
125
|
+
|
|
126
|
+
// Option Types
|
|
127
|
+
CreateMessageOptions,
|
|
128
|
+
AddParticipantOptions,
|
|
129
|
+
StartChatOptions,
|
|
130
|
+
|
|
131
|
+
// Zod Schemas
|
|
132
|
+
MessageSchema,
|
|
133
|
+
ChatParticipantSchema,
|
|
134
|
+
GroupChatConfigSchema,
|
|
135
|
+
TerminationConditionSchema,
|
|
136
|
+
TerminationConditionValueSchema,
|
|
137
|
+
ConsensusConfigSchema,
|
|
138
|
+
} from './types';
|
|
139
|
+
|
|
140
|
+
// ============================================================================
|
|
141
|
+
// Re-exports for convenience
|
|
142
|
+
// ============================================================================
|
|
143
|
+
|
|
144
|
+
// Re-export validation library for type guards
|
|
145
|
+
export { z } from 'zod';
|