agent_studio.llm.utils#

Module Contents#

Functions#

extract_from_response(→ str)

openai_encode_image(→ str)

anthropic_encode_image(→ str)

decode_image(→ PIL.Image.Image)

agent_studio.llm.utils.extract_from_response(response: str, backtick='```') str[source]#
agent_studio.llm.utils.openai_encode_image(image: str | PIL.Image.Image | numpy.ndarray | None) str[source]#
agent_studio.llm.utils.anthropic_encode_image(image: str | PIL.Image.Image | numpy.ndarray | None) str[source]#
agent_studio.llm.utils.decode_image(encoded_image: str) PIL.Image.Image[source]#