Packages
Elixir-native LangChain, LangGraph, and DeepAgents for traceable LLM apps: OTP workflows, tools, memory, human-in-the-loop, streaming, custom clients/adapters, minimal deps, and WeaveScope tracing.
Current section
Files
Jump to
Current section
Files
examples/chat_model.exs
Code.require_file("support.exs", __DIR__)
alias BeamWeaver.Core.ChatModel
alias BeamWeaver.Core.Message
alias BeamWeaver.Examples.Support
{:ok, response} = ChatModel.invoke(Support.model(), [Message.user("Say hello in one short sentence.")])
IO.puts(Message.text(response))