zeitlich 0.1.0 → 0.1.1

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.mjs CHANGED
@@ -154,6 +154,11 @@ var createSession = async ({ threadId, agentName, maxTurns = 50, metadata = {} }
154
154
  exitReason = "completed";
155
155
  return message;
156
156
  }
157
+ if (!toolRouter || !toolRegistry) {
158
+ stateManager.complete();
159
+ exitReason = "completed";
160
+ return message;
161
+ }
157
162
  const rawToolCalls = await parseToolCalls(message);
158
163
  const parsedToolCalls = rawToolCalls.map(
159
164
  (tc) => toolRegistry.parseToolCall(tc)