Documentation
¶
Overview ¶
Package durabletest opens pi-durable Harnesses for the experimental tests: an in-memory one over the faux provider (packages/coding-agent/test/experimental-durable-support.ts openFauxConversation), and a file-backed SQLite one for worker processes. Both are wrapped by durableadapter.Session.
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ModelRef = services.ModelRef{Provider: "faux", ModelId: "faux-1"}
ModelRef is the faux model the root conversation starts with.
Functions ¶
Types ¶
type FauxConversation ¶
type FauxConversation struct {
Harness *durableadapter.Session
Conversation *durableadapter.Session
// Created reports that OpenFile found no storage, so its root conversation is new.
Created bool
// contains filtered or unexported fields
}
FauxConversation is an opened Harness with its root conversation. Harness and Conversation are the same adapter.
func OpenFauxConversation ¶
func OpenFauxConversation(steps ...Step) *FauxConversation
OpenFauxConversation opens an in-memory Harness whose root conversation answers from the given steps in order.
type Step ¶
Step is one faux provider response. It receives the run's context and the text of the last user message, and returns the answer text. A step that waits on ctx ends when the run is aborted.