Eai.Tool behaviour (eai v0.1.8)

Copy Markdown

Tool behaviour — each tool in config/tools/ implements schema/0 + execute/4.

Summary

Callbacks

execute(args, pty_session_id, chat_session_id)

@callback execute(
  args :: map(),
  pty_session_id :: String.t(),
  chat_session_id :: String.t()
) :: String.t()

schema()

@callback schema() :: map()