Versions in this module Expand all Collapse all v0 v0.61.0 Dec 3, 2026 Changes in this version + func AlignClaudeToolResults(content ojson.Result, toolUseIDs []string) ojson.Result + func AppendSSEEventBytes(out []byte, event string, payload []byte, trailingNewlines int) []byte + func AppendSSEEventString(out []byte, event, payload string, trailingNewlines int) []byte + func BuildClaudeOutputFormatDescription(format ojson.Result) string + func BuildClaudeStructuredOutputInstruction(format ojson.Result) string + func ClaudeDocumentHeader(part ojson.Result) string + func ClaudeDocumentTextBlock(part ojson.Result) (string, bool) + func ClaudeInputTokensJSON(count int64) []byte + func ClaudeMessageSystemReminderText(content ojson.Result) (string, bool) + func ClaudeOutputFormatSchema(modelName string, format ojson.Result) (ojson.Result, bool) + func CodexReplaySignatureForTarget(modelName, rawSignature string) (string, bool) + func ConvertJSONNodeKeys(node ojson.Result, transform func(string) string) []byte + func CountSendableGeminiParts(parts [][]byte) int + func ExpandClaudeContentDocument(part ojson.Result, emitText func(string), ...) bool + func GeminiPartIsSendable(part []byte) bool + func GeminiTokenCountJSON(count int64) []byte + func InteractionsAttachmentType(part ojson.Result) string + func IsHTTPURL(value string) bool + func IsInteractionsInstructionStep(step ojson.Result, inherited bool) bool + func JoinRawArray(items [][]byte) []byte + func NewRawArrayItems(capacity int64) [][]byte + func ResolveCodexReplayTargetModel(modelName string, rawPayload []byte) string + func SSEEventData(event string, payload []byte) []byte + func SetRawArrayItems(data []byte, path string, items [][]byte) []byte + func SetRawArrayItemsDoc(doc *ojson.Doc, path string, items [][]byte) + func SetStringWithoutHTMLEscape(data []byte, path, value string) ([]byte, error) + func SetStringWithoutHTMLEscapeDoc(doc *ojson.Doc, path, value string) error + func SystemReminderText(text string) string + func VisibleCodexCommentary(ctx context.Context) bool + func WithVisibleCodexCommentary(ctx context.Context, enabled bool) context.Context + type ClaudeMessageAccumulator struct + func NewClaudeMessageAccumulator(capacity int) *ClaudeMessageAccumulator + func (a *ClaudeMessageAccumulator) Append(message []byte) + func (a *ClaudeMessageAccumulator) Flush() + func (a *ClaudeMessageAccumulator) Messages() [][]byte + type UnsupportedPartError struct + Type string + func (e *UnsupportedPartError) Error() string + func (e *UnsupportedPartError) IsRequestScoped() bool + func (e *UnsupportedPartError) StatusCode() int + type UserRun struct + func (r *UserRun) Add() + func (r *UserRun) Drop(partType string) + func (r *UserRun) End() + func (r *UserRun) Err() error + type UserTurnDrops struct + func (d *UserTurnDrops) Drop(partType string) + func (d *UserTurnDrops) EndTurn(sendable int) + func (d *UserTurnDrops) Err() error