Skip to main content

Module utils

Module utils 

Source

Constants§

ORPHAN_TOOL_USE_PLACEHOLDER_NAME
Placeholder name used for synthetic tool_use blocks injected by push_message_block when a tool_result would otherwise be orphaned (no preceding assistant tool_use with a matching id). Exposed so tests can refer to it.

Functions§

beta_error_response_from_status_message
beta_message_content_to_text
beta_system_prompt_to_text
claude_model_supports_enabled_thinking
claude_model_to_string
push_message_block
Append a single content block to a Claude messages list, building a well-formed conversation as we go: