Skip to main content

Module transforms

Module transforms 

Source
Expand description

System message transform callbacks for customizing agent prompts. System message transform callbacks for customizing agent prompts.

Implement SystemMessageTransform to intercept and modify system prompt sections during session creation. The CLI sends the current content for each section the transform registered, and the SDK returns the modified content.

Structs§

TransformContext
Context provided to every transform invocation.

Traits§

SystemMessageTransform
Handles systemMessage.transform RPC requests from the CLI.