ClaudeAgentSDK.SessionStore.MirrorBatcher (claude_agent_sdk v0.18.0)

Copy Markdown View Source

Batches transcript_mirror frames and appends them to a SessionStore.

Summary

Types

t()

@type t() :: pid()

Functions

child_spec(arg)

Returns a specification to start this module under a supervisor.

See Supervisor.

close(pid)

@spec close(t()) :: [ClaudeAgentSDK.Message.t()]

enqueue(pid, file_path, entries)

@spec enqueue(t(), String.t(), [map()]) :: [ClaudeAgentSDK.Message.t()]

flush(pid)

@spec flush(t()) :: [ClaudeAgentSDK.Message.t()]

message_from_error(key, error)

@spec message_from_error(ClaudeAgentSDK.SessionStore.Key.t() | nil, String.t()) ::
  ClaudeAgentSDK.Message.t()

start_link(store, projects_dir, opts \\ [])

@spec start_link(term(), String.t(), keyword()) :: Agent.on_start()