@townco/agent 0.1.20 → 0.1.21

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.
@@ -1,18 +1,18 @@
1
1
  import { LangchainAgent } from "./runner/langchain";
2
-
3
2
  const agent = new LangchainAgent({
4
- model: "claude-sonnet-4-5-20250929",
5
- systemPrompt: "You are a helpful assistant.",
6
- tools: ["todo_write"],
3
+ model: "claude-sonnet-4-5-20250929",
4
+ systemPrompt: "You are a helpful assistant.",
5
+ tools: ["todo_write"],
7
6
  });
8
7
  for await (const event of agent.invoke({
9
- prompt: [
10
- {
11
- type: "text",
12
- text: "Whats the weather in Tokyo?",
13
- },
14
- ],
15
- sessionId: "test-session",
8
+ prompt: [
9
+ {
10
+ type: "text",
11
+ text: "Whats the weather in Tokyo?",
12
+ },
13
+ ],
14
+ sessionId: "test-session",
15
+ messageId: "test-message-1",
16
16
  })) {
17
- console.log(event);
17
+ console.log(event);
18
18
  }