Skip to content

ai-agent-template-import

Enterprise Part of the commercial Kumiko Enterprise offering — not in the open framework.

Lets the AI agent rebuild a PDF template from an attached PDF. attachment-pages rasterizes the attached PDF through the puppeteer service and shows its pages and embedded images to the model as pictures; attachment-image stores one embedded image (or an attached PNG/JPEG) as an unattached file, so a logo reaches the template resource upload without its bytes passing through the conversation. Both name the attachment by its attachment:N label, which the agent’s dispatchers resolve to the attachment id. Requires ai-agent-attachments, template-resolver and renderer-puppeteer-client.

This Enterprise implementation is optional. If you need a narrower or domain-specific version, you can build an app-owned feature, handler, or job with Kumiko’s public extension points.

Use this package when you want the maintained implementation, its existing contracts, and the surrounding operational behavior. A custom implementation is not drop-in compatible automatically: your app owns its authorization, validation, integrations, tests, security review, and production operations.

Start with Features and composition and Custom write handlers.

What this feature needs to run (Requires, top) and the write commands this feature provides (Provides, bottom).

flowchart TB
  n_ai_agent_template_import["ai-agent-template-import"]
  subgraph how_reqs["Requires"]
    n_ai_agent_attachments["ai-agent-attachments"]
    n_template_resolver["template-resolver"]
    n_renderer_puppeteer_client["renderer-puppeteer-client"]
  end
  subgraph how_provides["Provides"]
    n_cmd_ai_agent_template_import_write_attachment_image(["attachment-image"])
  end
  n_ai_agent_attachments --> n_ai_agent_template_import
  n_template_resolver --> n_ai_agent_template_import
  n_renderer_puppeteer_client --> n_ai_agent_template_import
  n_ai_agent_template_import --> n_cmd_ai_agent_template_import_write_attachment_image

Provides — write commands this feature registers (dispatch them through the command bus):

  • ai-agent-template-import:write:attachment-image