AshAi.Actions.Prompt.Adapter.CompletionTool (ash_ai v0.2.12)

View Source

An adapter that provides a "complete_request" tool that the LLM must call within max_runs messages to complete the request.

Adapter Options

  • :max_runs - The maximum number of times to allow the LLM to repeatedly generate responses/call tools before the action is considered failed.

Summary

Functions

run(data, opts)

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