Skip to main content

Crate nanocodex

Crate nanocodex 

Source

Structs§

AgentEvent
One ordered event emitted by an agent run.
AgentEvents
The receiving half of an agent’s typed event stream.
AgentHandle
Weak child-agent capability for the driver that owns one tool runtime.
ChatGptAuthStatus
Non-secret information about a stored ChatGPT authorization.
ChatGptLogin
An in-progress authorization-code login using PKCE and a loopback callback.
CustomToolFormat
InternalMessageMetadata
JsonSchema
Open JSON Schema fragment used at the model/tool boundary.
JsonValue
Arbitrary JSON retained for protocol fields whose schema is provider-defined.
LocalShellExecAction
Mcp
A configured family of MCP servers installed into nanocodex_tools::Tools.
McpBuilder
Builder for an MCP provider.
McpServer
One MCP server transport and its lifecycle limits.
Nanocodex
Cheap, cloneable command handle for an owned agent driver.
NanocodexBuilder
Builder for a running agent with deferred Responses service composition.
OpenAiAuth
Cloneable OpenAI authorization shared by one agent family and its branches.
OutputTextLogprob
OutputTextTopLogprob
Prompt
User input for one agent turn.
RequestProfile
Stable request metadata and prefix shared by every operation in a session.
Responses
Responses transport configuration with standard or caller-supplied Tower service factory policy.
ResponsesAttempt
One logical Responses operation, including the complete input required for a safe retry.
ResponsesBuilder
Builder for the standard Responses endpoints or a caller-composed service.
ResponsesClient
An owned Responses client over an arbitrary Tower service stack.
ResponsesRetryPolicy
ResponsesService
Stateful WebSocket attempt service at the base of a Responses Tower stack.
ResponsesServiceError
ResponsesServiceResponse
ToolContext
ToolExecution
Tools
Declarative selection of the built-in tools installed for an agent.
ToolsBuilder
Builder for the built-in tool selection.
Turn
Completion handle for an accepted turn.
TurnControl
Cheap cloneable control capability for one accepted turn.
TurnResult
Final result of a completed turn.
Usage

Enums§

AgentEventKind
Stable event categories emitted by the agent runtime.
AgentMessageContent
ChatGptAuthError
Failure while logging in, loading, persisting, or removing ChatGPT credentials.
ContentItem
FunctionOutputBody
FunctionOutputContent
ImageDetail
ItemStatus
LocalShellAction
LocalShellStatus
McpBuildError
MessagePhase
MessageRole
NanocodexError
Error returned by the Nanocodex library boundary.
OpenAiAuthError
Error produced while resolving or refreshing OpenAI credentials.
OpenAiAuthMode
Authentication mode for the single OpenAI service family supported by Nanocodex.
OutputTextAnnotation
PromptInput
Ordered input for one agent turn.
ReasoningContent
ReasoningSummary
ResponseItem
A strongly typed conversation item sent to or received from the Responses API.
ResponsesAttemptKind
Kind of Responses operation passed through the Tower service stack.
ResponsesError
Errors produced by the OpenAI Responses WebSocket transport.
Thinking
ToolCaller
ToolDefinition
Model-visible tool definition carried by Responses Lite input.
ToolInput
Canonical input presented to function and freeform tools.
ToolInputError
ToolOutputBody
ToolOutputContent
ToolsBuildError
UserInput
One ordered user-supplied prompt item.
WebSearchAction

Constants§

DEFAULT_TOOL_OUTPUT_TOKENS
MODEL
The single Responses model contract supported by this SDK.

Traits§

Tool
A model-visible tool installed in an agent’s heterogeneous tool registry.
ToolSchema
A type which can be described as a JSON Schema document.

Functions§

chatgpt_auth_status
Inspect a stored ChatGPT authorization without exposing its tokens.
load_chatgpt_auth
Load a persisted ChatGPT OAuth session as the shared authorization for an agent family.
logout_chatgpt
Remove locally stored ChatGPT credentials. Missing files are treated as logged out.

Type Aliases§

DefaultResponsesService
Result
ToolError
Error returned by an application-defined tool handler.
ToolResult
Result returned by Tool::execute.

Attribute Macros§

async_trait
tool
Defines a JSON function tool from an async Rust function.

Derive Macros§

ToolSchema