Skip to main content

Module server

Module server 

Source
Expand description

The [server] section of forge.toml.

Re-exports§

use std::net::IpAddr; 🔒
use std::net::Ipv4Addr; 🔒
use serde::Deserialize; 🔒
use serde::Deserialize; 🔒

Structs§

ServerConfig
The [server] block of forge.toml: whether the socket’s listener starts with forge, where it binds, and how large a served page’s structured tool record may be.

Constants§

DEFAULT_FIRST_FRAME_CAP_KB
The first snapshot’s conversation budget when [server] first_frame_cap_kb is absent. See ServerConfig::first_frame_cap_kb.
DEFAULT_MORE_PAGE_CAP_KB
A more page’s conversation budget when [server] more_page_cap_kb is absent. See ServerConfig::more_page_cap_kb.
DEFAULT_SERVER_PORT
The port the server binds when [server] port is absent. Distinct from the gateway’s 8787, the other listener a boot brings up.
DEFAULT_TOOL_RECORD_CAP_KB
The served tool_use_result cap when [server] tool_record_cap_kb is absent. See ServerConfig::tool_record_cap_kb.