Constants§
- ORPHAN_
TOOL_ USE_ PLACEHOLDER_ NAME - Placeholder name used for synthetic
tool_useblocks injected bypush_message_blockwhen atool_resultwould otherwise be orphaned (no preceding assistanttool_usewith a matchingid). 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
messageslist, building a well-formed conversation as we go: