AshAi.Actions.Prompt.Adapter.Raw (ash_ai v0.2.8)

View Source

An adapter for prompt-backed actions that returns the raw llm response

Useful for example for llama-guard3 which returns either:

  • "safe"
  • "unsafe category" as a response.

Summary

Functions

run(data, opts)

Callback implementation for AshAi.Actions.Prompt.Adapter.run/2.