Documentation
¶
Overview ¶
Package imagecard reads what the feed's picture card needs out of the text an agent's picture tool left in a transcript: the report of generate_images / wait_images (see imagegen.Report) and the names of the tools.
Index ¶
Constants ¶
const ( Drawing = "drawing" Done = "done" Failed = "failed" )
States of a picture call.
Variables ¶
This section is empty.
Functions ¶
func IsGenerate ¶
IsGenerate and IsWait say whether a tool name (bare, or mcp__<server>__<tool>) is the harnessly picture tool or its video twin (generate_video, wait_video): a clip is a card of the same kind, its file a video.
Types ¶
type Report ¶
Report is the parsed answer of a picture tool.
func ParseReport ¶
ParseReport reads the text of a generate_images / wait_images answer: «job_id: <id>», then «Done: …», «Still drawing: …» or «Failed: <why>», then «<n>. <path>» lines. ok is false for any other text.