AshBaml.Actions.CallBamlStream (ash_baml v0.2.0)

View Source

Action implementation that calls BAML functions with streaming.

This module wraps BAML's streaming API in an Elixir Stream, allowing actions to return token-by-token results from LLM calls.

Summary

Functions

Executes the BAML function with streaming.

Functions

run(input, opts, context)

Executes the BAML function with streaming.

Returns {:ok, stream} where stream is an Elixir Stream that emits chunks as they arrive from the LLM.