Open Agent Loops
API Reference

ToCurlOptions

@open-agent-loops/core


Defined in: observability/to-curl.ts:23

Options for toCurl.

Properties

PropertyTypeDescriptionDefined in
apiKeyEnv?stringName of the env var holding the API key, referenced as $NAME in the Authorization header — so the key itself never lands in the command. Default "API_KEY".observability/to-curl.ts:33
baseURLstringEndpoint base URL, e.g. "https://api.featherless.ai/v1" (a trailing slash is fine).observability/to-curl.ts:25
path?stringRequest path appended to baseURL. Default "/chat/completions".observability/to-curl.ts:27
pretty?booleanPretty-print the JSON body (2-space indent) so the command is easy to read. Single quotes preserve the newlines, so it stays runnable. Default true; set false for a compact one-liner (handy for scripting or -d @file).observability/to-curl.ts:44
stream?booleanOverride the body's stream flag. Pass false for a single JSON response that's easy to read when replayed by hand. Omit to keep the body as captured.observability/to-curl.ts:38

On this page