byName

Find a Prompt by its name in a drained prompts/list slice (typically client.listPrompts().prompts). Returns the first match wrapped in a Nullable!Prompt, or a null Nullable when absent. Usable via UFCS as prompts.byName("greet").

  1. Nullable!Tool byName(Tool[] tools, string name)
  2. Nullable!Prompt byName(Prompt[] prompts, string name)
    @safe
    Nullable!Prompt
    byName
    (,
    string name
    )