Imp.Playbook.WithContext (Imp v0.5.0)

Copy Markdown View Source

Executes a program with active playbook guidance appended to every predictor.

The wrapped program and playbook remain immutable. Optimizers operate on the underlying predictor instructions; playbook context is added only to the ephemeral program used for each call.

Summary

Types

t()

@type t() :: %Imp.Playbook.WithContext{playbook: Imp.Playbook.t(), program: struct()}

Functions

new(program, playbook)

@spec new(struct(), Imp.Playbook.t()) :: t()