codeOutput property

  1. @experimental
CodeOutput? codeOutput
final

codeOutput is experimental and is not adviced for usage. 🚨

Extract the last inline code snippet from the promptOutput.

Returns prompt output string itself if no code snippets between <code snippet> are found. Happens when the model returns the code directly as string without code blocks.

Implementation

@experimental
final CodeOutput? codeOutput;