agent

package
v1.801.390 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 3, 2026 License: Apache-2.0 Imports: 14 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package agent is a conversation that uses your org's own tools to get an answer.

It mounts the hanzoai/agent orchestrator into cloud: POST /v1/agent (+ /v1/agent/presets, /v1/agent/conversations). The orchestrator logic and its per-org conversation history live in github.com/hanzoai/agent, which imports NEITHER cloud NOR ai. Cloud is the composition root: it injects the two seams —

  • Completer: the ai subsystem's /v1/chat/completions, replayed in-process (the one path that returns tool_calls AND carries per-org reserve/settle billing);
  • ToolPlane: the unified tool registry (tools.Default()), so /v1/agent's server-executed tools are the org's activated MCP/registry tools.

/v1/agent is a DISTINCT path (not /v1/chat, which ai owns as completions), so a specific route wins over ai's /v1/* glob — no collision.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Mount

func Mount(app *zip.App, deps cloud.Deps) error

Mount wires POST /v1/agent (+ reads) into cloud, injecting the ai completion and the tool plane. The caller identity comes from cloud's validated principal.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL