Skip to content

Commit 6fff263

Browse files
committed
fix
1 parent 4ff08bd commit 6fff263

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/content/changelog/agents/2025-03-17-npm-i-agents.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ import { Agent, callable } from 'agents';
6262
// TODO: replace this with a real example
6363
class MyAgent extends Agent {
6464
@callable()
65-
async getHistory(limit = 5: number): Promise<string[]> {
65+
async getHistory(limit: number = 10): Promise<string[]> {
6666
// Allow a client to directly fetch chat history
6767
return this.state.chatHistory.slice(-limit)
6868
}

0 commit comments

Comments
 (0)