Skip to main content

Definition

Assembly: CloudNimble.ClaudeEssentials.dll Namespace: CloudNimble.ClaudeEssentials.Hooks.Inputs Inheritance: CloudNimble.ClaudeEssentials.Hooks.Inputs.HookInputBase

Syntax

Summary

Base class for the inputs received by hooks that run around a model switch.

Constructors

.ctor Inherited

Inherited from CloudNimble.ClaudeEssentials.Hooks.Inputs.HookInputBase

Syntax

.ctor Inherited

Inherited from object

Syntax

Properties

AgentId Inherited

Inherited from CloudNimble.ClaudeEssentials.Hooks.Inputs.HookInputBase
Gets or sets the subagent identifier. Present only when the hook fires from within a subagent.

Syntax

Property Value

Type: string?

AgentType Inherited

Inherited from CloudNimble.ClaudeEssentials.Hooks.Inputs.HookInputBase
Gets or sets the agent type name, present within a subagent or on the main thread of a session started with --agent.

Syntax

Property Value

Type: string?

CacheTtl

Gets or sets the prompt cache time to live.

Syntax

Property Value

Type: CloudNimble.ClaudeEssentials.Hooks.PromptCacheTtl

ContextTokens

Gets or sets the prompt tokens the next request re-sends.

Syntax

Property Value

Type: long

CurrentWorkingDirectory Inherited

Inherited from CloudNimble.ClaudeEssentials.Hooks.Inputs.HookInputBase
Gets or sets the current working directory where Claude Code is running.

Syntax

Property Value

Type: string

Effort Inherited

Inherited from CloudNimble.ClaudeEssentials.Hooks.Inputs.HookInputBase
Gets or sets the reasoning effort applied to the current turn.

Syntax

Property Value

Type: CloudNimble.ClaudeEssentials.Hooks.Inputs.HookEffortInfo?

EstimatedCacheWriteUsd

Gets or sets the estimated cost of re-caching the context on the target model, excluding the response.

Syntax

Property Value

Type: double

FromModel

Gets or sets the resolved model ID the session was running before the switch.

Syntax

Property Value

Type: string

HookEventName Inherited

Inherited from CloudNimble.ClaudeEssentials.Hooks.Inputs.HookInputBase
Gets or sets the name of the hook event that triggered this input.

Syntax

Property Value

Type: CloudNimble.ClaudeEssentials.Hooks.HookEventName?

PermissionMode Inherited

Inherited from CloudNimble.ClaudeEssentials.Hooks.Inputs.HookInputBase
Gets or sets the permission mode under which Claude Code is operating.

Syntax

Property Value

Type: System.Nullable<CloudNimble.ClaudeEssentials.Hooks.PermissionMode?>?

Pricing

Gets or sets where the cost estimate came from.

Syntax

Property Value

Type: CloudNimble.ClaudeEssentials.Hooks.ModelSwitchPricing

PromptCacheWarm

Gets or sets a value indicating whether the current model’s prompt cache is likely still warm.

Syntax

Property Value

Type: bool

PromptId Inherited

Inherited from CloudNimble.ClaudeEssentials.Hooks.Inputs.HookInputBase
Gets or sets the UUID correlating a user prompt with all subsequent events until the next prompt.

Syntax

Property Value

Type: string?

RequestedModel

Gets or sets what was asked for, such as an alias or full ID, or null for the default.

Syntax

Property Value

Type: string?

SessionId Inherited

Inherited from CloudNimble.ClaudeEssentials.Hooks.Inputs.HookInputBase
Gets or sets the unique identifier for the current Claude Code session.

Syntax

Property Value

Type: string

Source

Gets or sets what initiated the switch.

Syntax

Property Value

Type: CloudNimble.ClaudeEssentials.Hooks.ModelSwitchSource

ToModel

Gets or sets the resolved model ID the session runs after the switch.

Syntax

Property Value

Type: string

TranscriptPath Inherited

Inherited from CloudNimble.ClaudeEssentials.Hooks.Inputs.HookInputBase
Gets or sets the file path to the transcript JSONL file for the current session. This file contains the full conversation history.

Syntax

Property Value

Type: string

Methods

Equals Inherited Virtual

Inherited from object

Syntax

Parameters

Returns

Type: bool

Equals Inherited

Inherited from object

Syntax

Parameters

Returns

Type: bool

GetHashCode Inherited Virtual

Inherited from object

Syntax

Returns

Type: int

GetType Inherited

Inherited from object

Syntax

Returns

Type: System.Type

MemberwiseClone Inherited

Inherited from object

Syntax

Returns

Type: object

ReferenceEquals Inherited

Inherited from object

Syntax

Parameters

Returns

Type: bool

ToString Inherited Virtual

Inherited from object

Syntax

Returns

Type: string?