Normandy.LLM.Json.RetryFeedback (normandy v1.3.0)

View Source

Builds the corrective feedback appended to the system prompt on a JSON retry, and augments the message history with it.

Summary

Functions

augment_messages(messages, feedback)

@spec augment_messages([Normandy.Components.Message.t()], String.t()) :: [
  Normandy.Components.Message.t()
]

build(reason, content, schema, adapter)

@spec build(term(), binary(), struct(), module()) :: String.t()