LemonGateway.Tools.TelegramSendImage (lemon_gateway v0.1.0)

View Source

LemonAgent tool definition for sending images to Telegram.

Resolves the image path relative to the project or workspace root, validates the file type and size, and queues it for delivery to the active Telegram chat with an optional caption.

Summary

Functions

execute(tool_call_id, params, signal, on_update, root, workspace_dir, session_key)

@spec execute(
  String.t(),
  map(),
  reference() | nil,
  (LemonAgent.Types.AgentToolResult.t() -> :ok) | nil,
  String.t() | nil,
  String.t() | nil,
  String.t() | nil
) :: LemonAgent.Types.AgentToolResult.t()

tool(cwd, opts \\ [])