Expand description
Utility functions for extracting code blocks and building parts.
Functions§
- build_
code_ execution_ result_ part - Build a
CodeExecutionResultPart with OK or FAILED outcome. - build_
executable_ code_ part - Build an
ExecutableCodePart (language=PYTHON). - extract_
code_ from_ text - Extract the first code block from text content using the given delimiters.