Packages

Elixir framework for building production-ready AI agents and LLM applications: type-safe schemas with JSON Schema generation, tool calling, streaming, multi-agent coordination, guardrails, and distributed fault-tolerant sessions, with first-class Anthropic Claude support.

Current section

Files

Jump to
normandy lib normandy agents io_model.ex
Raw

lib/normandy/agents/io_model.ex

defmodule Normandy.Agents.BaseAgentInputSchema do
@moduledoc """
Default input schema for agent interactions.
Provides a simple chat message input format.
"""
use Normandy.Schema
@derive {Poison.Encoder, only: [:chat_message]}
io_schema "base input" do
field(:chat_message, :string, description: "an input chat message from user")
end
end
defmodule Normandy.Agents.BaseAgentOutputSchema do
@moduledoc """
Default output schema for agent responses.
Provides a simple chat message output format.
"""
use Normandy.Schema
@derive {Poison.Encoder, only: [:chat_message]}
io_schema "base output" do
field(:chat_message, :string, description: "a result chat message")
end
end