Skip to content

armgit / letta

Public Imported from GitHub
0

Platform for stateful agents: AI with advanced memory that can learn and self-improve over time.

chore: update linter (#4897)

Shubham Naik568c42ab0852
diff --git a/examples/streaming/streaming_demo.ts b/examples/streaming/streaming_demo.ts
index 4b60e1be8..6cc56c803 100644
--- a/examples/streaming/streaming_demo.ts
+++ b/examples/streaming/streaming_demo.ts
@@ -1,4 +1,6 @@
#!/usr/bin/env tsx
+/* eslint-disable @typescript-eslint/no-non-null-assertion */
+
/**
* Minimal TypeScript examples showing Letta's streaming API.
* Demonstrates both step streaming (default) and token streaming modes.
@@ -20,6 +22,7 @@ async function stepStreamingExample(client: LettaClient, agentId: string): Promi
for await (const chunk of stream as AsyncIterable<LettaMessage>) {
// Each chunk is a complete message
if (chunk.messageType === 'assistant_message') {
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
console.log((chunk as any).content);
}
}
@@ -49,6 +52,7 @@ async function tokenStreamingExample(client: LettaClient, agentId: string): Prom
}
// Accumulate and print content
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
const contentChunk = (chunk as any).content || '';
messageAccumulators.set(msgId, messageAccumulators.get(msgId)! + contentChunk);
process.stdout.write(contentChunk);
@@ -99,4 +103,4 @@ async function main(): Promise<void> {
}
// Run the example
-main().catch(console.error);
\ No newline at end of file
+main().catch(console.error);