@looopy-ai/core 2.1.4 → 2.1.6
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/core/loop.js
CHANGED
|
@@ -54,6 +54,8 @@ export const runLoop = (context, config, history) => {
|
|
|
54
54
|
const eventsToMessages = (events) => {
|
|
55
55
|
const messages = [];
|
|
56
56
|
for (const event of events) {
|
|
57
|
+
if (isChildTaskEvent(event))
|
|
58
|
+
continue;
|
|
57
59
|
switch (event.kind) {
|
|
58
60
|
case 'content-complete':
|
|
59
61
|
if (event.content) {
|
|
@@ -103,7 +103,7 @@ export class AgentToolProvider {
|
|
|
103
103
|
method: 'POST',
|
|
104
104
|
headers: {
|
|
105
105
|
Accept: 'text/event-stream',
|
|
106
|
-
'X-Amzn-Bedrock-AgentCore-Runtime-Session-Id': `${context.contextId}
|
|
106
|
+
'X-Amzn-Bedrock-AgentCore-Runtime-Session-Id': `${context.contextId}`,
|
|
107
107
|
...(await this.getHeaders?.(context, this.card)),
|
|
108
108
|
},
|
|
109
109
|
body: JSON.stringify({ prompt }),
|