Documentation
¶
Overview ¶
Package fino provides minimal primitives for building LLM agents.
The core SDK implements the ReAct feedback loop and leaves orchestration, persistence, permissions semantics, RAG, tools, provider clients, and deployment to users.
Directories
¶
| Path | Synopsis |
|---|---|
|
Package agent defines Agent, Mode, and HandoffTool for the fino Agent SDK.
|
Package agent defines Agent, Mode, and HandoffTool for the fino Agent SDK. |
|
examples
|
|
|
coding_agent
command
|
|
|
cookbook/hitl_resume
command
Command hitl_resume shows human-in-the-loop tool approval built only from fino primitives: a Policy suspends a sensitive tool (DecisionSuspend), the run halts with a suspended Result, a human approves or rejects each pending call, and runner.ResumeApproved continues the ReAct loop.
|
Command hitl_resume shows human-in-the-loop tool approval built only from fino primitives: a Policy suspends a sensitive tool (DecisionSuspend), the run halts with a suspended Result, a human approves or rejects each pending call, and runner.ResumeApproved continues the ReAct loop. |
|
cookbook/parallel_tools
command
Command parallel_tools shows bounded concurrent tool execution within a single tool-call batch via runner.WithMaxConcurrency.
|
Command parallel_tools shows bounded concurrent tool execution within a single tool-call batch via runner.WithMaxConcurrency. |
|
cookbook/rag_as_tool
command
Command rag_as_tool shows that retrieval-augmented generation needs no core support: a retriever is just a tool.Tool.
|
Command rag_as_tool shows that retrieval-augmented generation needs no core support: a retriever is just a tool.Tool. |
|
hello
command
Command hello is a minimal end-to-end fino example: an agent with one tool, driven by an OpenAI-compatible model.
|
Command hello is a minimal end-to-end fino example: an agent with one tool, driven by an OpenAI-compatible model. |
|
history_trim
command
Command history_trim demonstrates the canonical fino extension pattern: wrapping model.Model.
|
Command history_trim demonstrates the canonical fino extension pattern: wrapping model.Model. |
|
multi_mode
command
Command multi_mode shows one agent with two modes — "plan" and "code" — and how to select a mode per run with runner.WithMode.
|
Command multi_mode shows one agent with two modes — "plan" and "code" — and how to select a mode per run with runner.WithMode. |
|
streaming
command
Command streaming shows how to consume the Runner's streaming events: text deltas, tool calls, tool results, and the final message.
|
Command streaming shows how to consume the Runner's streaming events: text deltas, tool calls, tool results, and the final message. |
|
Package hooks defines lifecycle hooks for observing and extending model calls and tool executions in the fino Agent SDK.
|
Package hooks defines lifecycle hooks for observing and extending model calls and tool executions in the fino Agent SDK. |
|
Package message defines the data types exchanged between models, tools, and the Runner in the fino Agent SDK.
|
Package message defines the data types exchanged between models, tools, and the Runner in the fino Agent SDK. |
|
Package model defines the Model interface and stream event types for the fino Agent SDK.
|
Package model defines the Model interface and stream event types for the fino Agent SDK. |
|
Package policy defines the authorization interface for tool execution in the fino Agent SDK.
|
Package policy defines the authorization interface for tool execution in the fino Agent SDK. |
|
providers
|
|
|
anthropic
Package anthropic implements a model.Model adapter for the Anthropic Messages API and any Anthropic-compatible endpoint (such as DeepSeek's https://api.deepseek.com/anthropic).
|
Package anthropic implements a model.Model adapter for the Anthropic Messages API and any Anthropic-compatible endpoint (such as DeepSeek's https://api.deepseek.com/anthropic). |
|
deepseek
Package deepseek provides preset constructors for DeepSeek, which exposes both an OpenAI-compatible and an Anthropic-compatible endpoint.
|
Package deepseek provides preset constructors for DeepSeek, which exposes both an OpenAI-compatible and an Anthropic-compatible endpoint. |
|
glm
Package glm provides a preset constructor and typed options for Zhipu's GLM models, which expose an OpenAI-compatible endpoint.
|
Package glm provides a preset constructor and typed options for Zhipu's GLM models, which expose an OpenAI-compatible endpoint. |
|
internal/httpx
Package httpx holds the HTTP transport tuning shared by the provider adapters: a streaming-safe client with connection-phase timeouts and a retry loop for transient failures.
|
Package httpx holds the HTTP transport tuning shared by the provider adapters: a streaming-safe client with connection-phase timeouts and a retry loop for transient failures. |
|
internal/sse
Package sse holds the Server-Sent Events streaming loop shared by the provider adapters.
|
Package sse holds the Server-Sent Events streaming loop shared by the provider adapters. |
|
kimi
Package kimi provides a preset constructor for Moonshot's Kimi models, which expose an OpenAI-compatible endpoint.
|
Package kimi provides a preset constructor for Moonshot's Kimi models, which expose an OpenAI-compatible endpoint. |
|
minimax
Package minimax provides a preset constructor and typed options for MiniMax models, which expose an OpenAI-compatible endpoint.
|
Package minimax provides a preset constructor and typed options for MiniMax models, which expose an OpenAI-compatible endpoint. |
|
openai
Package openai implements a model.Model adapter for the OpenAI Chat Completions API and any OpenAI-compatible endpoint (such as DeepSeek's https://api.deepseek.com).
|
Package openai implements a model.Model adapter for the OpenAI Chat Completions API and any OpenAI-compatible endpoint (such as DeepSeek's https://api.deepseek.com). |
|
qwen
Package qwen provides a preset constructor and typed options for Alibaba's Qwen models on DashScope, which expose an OpenAI-compatible endpoint.
|
Package qwen provides a preset constructor and typed options for Alibaba's Qwen models on DashScope, which expose an OpenAI-compatible endpoint. |
|
Package runner executes the ReAct feedback loop for the fino Agent SDK.
|
Package runner executes the ReAct feedback loop for the fino Agent SDK. |
|
Package tool defines the Tool interface, function-tool helpers, and JSON Schema inference for the fino Agent SDK.
|
Package tool defines the Tool interface, function-tool helpers, and JSON Schema inference for the fino Agent SDK. |
|
x
|
|
|
agui
Package agui adapts fino runs to the AG-UI protocol.
|
Package agui adapts fino runs to the AG-UI protocol. |
|
budget
Package budget provides a cost-bounded model decorator for fino.
|
Package budget provides a cost-bounded model decorator for fino. |
|
eval
Package eval provides reproducible regression testing for fino agents.
|
Package eval provides reproducible regression testing for fino agents. |
|
recover
Package recover provides durable continuation for fino agent runs.
|
Package recover provides durable continuation for fino agent runs. |
|
replay
Package replay provides record-and-replay and an execution tape for fino agent runs.
|
Package replay provides record-and-replay and an execution tape for fino agent runs. |
|
trace
Package trace adapts fino lifecycle hooks to a minimal tracer.
|
Package trace adapts fino lifecycle hooks to a minimal tracer. |
Click to show internal directories.
Click to hide internal directories.