mirror of
https://github.com/badlogic/pi-mono.git
synced 2026-11-05 23:37:25 +00:00
feat(agent): establish durable harness type contracts
This commit is contained in:
parent
40a3d8556a
commit
5aeb06bb11
78 changed files with 1211 additions and 12174 deletions
|
|
@ -6,7 +6,6 @@ import {
|
|||
bashExecutionToText,
|
||||
convertToLlm,
|
||||
createCustomMessage,
|
||||
InMemorySessionRepo,
|
||||
FileError,
|
||||
formatPromptTemplateInvocation,
|
||||
formatSkillInvocation,
|
||||
|
|
@ -28,7 +27,6 @@ const stream = createAssistantMessageEventStream();
|
|||
|
||||
const agent = new Agent({ initialState: { model }, streamFn: streamSimple });
|
||||
agent.steer({ role: "user", content: [{ type: "text", text: "queued" }], timestamp: 0 });
|
||||
const repo = new InMemorySessionRepo();
|
||||
const result = getOrThrow(ok({ value: 1 }));
|
||||
const customMessage = createCustomMessage("note", "hello", true, undefined, "2026-01-01T00:00:00.000Z");
|
||||
const llmMessages = convertToLlm([customMessage]);
|
||||
|
|
@ -41,7 +39,6 @@ console.log(
|
|||
schema.type,
|
||||
typeof stream.push,
|
||||
agent.hasQueuedMessages(),
|
||||
typeof repo.create,
|
||||
result.value,
|
||||
llmMessages.length,
|
||||
bashExecutionToText({
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue