Skip to content

v0.0.6

Choose a tag to compare

@mococa mococa released this 11 Sep 23:24
· 7 commits to main since this release

Added

  • Per-generation context via ContextFn — Agent.context now accepts a function (params: ContextParams) => string | Promise<string> in addition to a static string. Called each time the agent is invoked with the triggering prompt and available conversation context (conversationId, participants, turn, annotations). Works in Agent.run(), direct conversation generations, and delegated sub-generations. ContextFn and ContextParams exported from @moureau/pipeflow.
  • Conversation annotations — conversation.annotations (Annotations instance) is a scoped key-value store for ephemeral app state. Values are rendered as system messages before every generation. API: .set(key, value), .set({...}), .delete(key), .clear(), .entries (live ReadonlyMap), .size. Accessible from ContextFn via params.annotations. Exported from @moureau/pipeflow.