Skip to content

Commit 9de1285

Browse files
committed
Docs: Standardize parameter descriptions in API_REFERENCE.md (#65)
1 parent 03de81d commit 9de1285

1 file changed

Lines changed: 39 additions & 39 deletions

File tree

docs/api/API_REFERENCE.md

Lines changed: 39 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,9 @@ class NeuralNode implements INeuralNode {
4848
**Config**:
4949
```typescript
5050
interface NeuralNodeConfig {
51-
id: string // Unique identifier
52-
type: NeuronType // 'cortical' | 'reflex' | 'sensory' | 'motor'
53-
threshold: number // Activation threshold (0.0 - 1.0)
51+
id: string - Unique identifier for the neural node.
52+
type: NeuronType - The type of neuron ('cortical' | 'reflex' | 'sensory' | 'motor').
53+
threshold: number - Activation threshold (0.0 - 1.0) for the neural node.
5454
}
5555
```
5656

@@ -130,11 +130,11 @@ class Connection implements IConnection {
130130
**Config**:
131131
```typescript
132132
interface ConnectionConfig {
133-
source: INeuralNode // Source neuron
134-
target: INeuralNode // Target neuron
135-
weight: number // Signal amplification (0.0 - 1.0)
136-
type: ConnectionType // 'excitatory' | 'inhibitory' | 'modulatory'
137-
speed: TransmissionSpeed // 'myelinated' | 'unmyelinated'
133+
source: INeuralNode - The source neural node of the connection.
134+
target: INeuralNode - The target neural node of the connection.
135+
weight: number - Signal amplification (0.0 - 1.0) for the connection.
136+
type: ConnectionType - The type of connection ('excitatory' | 'inhibitory' | 'modulatory').
137+
speed: TransmissionSpeed - The transmission speed of the connection ('myelinated' | 'unmyelinated').
138138
}
139139
```
140140

@@ -315,8 +315,8 @@ class Heart extends EventEmitter {
315315
**Options**:
316316
```typescript
317317
interface HeartOptions {
318-
persistence?: boolean // Persist messages
319-
maxQueueSize?: number // Queue capacity
318+
persistence?: boolean - Whether to persist messages (optional).
319+
maxQueueSize?: number - The maximum capacity of the message queue (optional).
320320
}
321321
```
322322

@@ -464,12 +464,12 @@ class TCell extends EventEmitter {
464464
**Config**:
465465
```typescript
466466
interface TCellConfig {
467-
id: string
468-
algorithm: 'HS256' | 'HS384' | 'HS512' | 'RS256'
469-
secretKey: string
470-
expiresIn?: string // e.g., '1h', '7d'
471-
refreshEnabled?: boolean
472-
mfaEnabled?: boolean
467+
id: string - Unique identifier for the TCell instance.
468+
algorithm: 'HS256' | 'HS384' | 'HS512' | 'RS256' - The JWT signing algorithm to use.
469+
secretKey: string - The secret key used for signing JWTs.
470+
expiresIn?: string - Token expiration time (e.g., '1h', '7d') (optional).
471+
refreshEnabled?: boolean - Whether token refresh is enabled (optional).
472+
mfaEnabled?: boolean - Whether Multi-Factor Authentication is enabled (optional).
473473
}
474474
```
475475

@@ -590,15 +590,15 @@ class Macrophage extends EventEmitter {
590590
**Config**:
591591
```typescript
592592
interface MacrophageConfig {
593-
id: string
594-
xss?: boolean // XSS protection
595-
sqlInjection?: boolean // SQL injection protection
596-
commandInjection?: boolean // Command injection protection
597-
pathTraversal?: boolean // Path traversal protection
598-
htmlEncode?: boolean // HTML encoding
599-
stripScripts?: boolean // Remove all scripts
600-
allowedTags?: string[] // Allowed HTML tags
601-
maxLength?: number // Max input length
593+
id: string - Unique identifier for the Macrophage instance.
594+
xss?: boolean - Enable XSS (Cross-Site Scripting) protection (optional).
595+
sqlInjection?: boolean - Enable SQL injection protection (optional).
596+
commandInjection?: boolean - Enable command injection protection (optional).
597+
pathTraversal?: boolean - Enable path traversal protection (optional).
598+
htmlEncode?: boolean - Enable HTML encoding for output (optional).
599+
stripScripts?: boolean - Remove all script tags from input (optional).
600+
allowedTags?: string[] - List of allowed HTML tags (optional).
601+
maxLength?: number - Maximum allowed input length (optional).
602602
}
603603
```
604604

@@ -700,11 +700,11 @@ class Muscle<TInput, TOutput> {
700700
**Options**:
701701
```typescript
702702
interface MuscleOptions {
703-
inputSchema?: Bone // Validate inputs
704-
outputSchema?: Bone // Validate outputs
705-
deterministic?: boolean // Enable memoization
706-
retry?: RetryPolicy // Retry configuration
707-
metadata?: MuscleMetadata // Additional metadata
703+
inputSchema?: Bone - Schema for validating inputs (optional).
704+
outputSchema?: Bone - Schema for validating outputs (optional).
705+
deterministic?: boolean - Enable memoization for deterministic functions (optional).
706+
retry?: RetryPolicy - Configuration for retrying function execution (optional).
707+
metadata?: MuscleMetadata - Additional metadata for the muscle (optional).
708708
}
709709
```
710710

@@ -784,9 +784,9 @@ class Astrocyte extends EventEmitter {
784784
**Config**:
785785
```typescript
786786
interface AstrocyteConfig {
787-
id: string
788-
maxSize?: number // Max items (LRU eviction)
789-
defaultTTL?: number // Default TTL in ms
787+
id: string - Unique identifier for the Astrocyte instance.
788+
maxSize?: number - Maximum number of items to store (for LRU eviction) (optional).
789+
defaultTTL?: number - Default Time-To-Live in milliseconds for cached items (optional).
790790
}
791791
```
792792

@@ -947,12 +947,12 @@ type TransmissionSpeed = 'myelinated' | 'unmyelinated';
947947
type NodeState = 'inactive' | 'active' | 'firing' | 'refractory' | 'failed';
948948

949949
interface Signal {
950-
id: string;
951-
sourceId: string;
952-
type: ConnectionType;
953-
strength: number; // 0.0 - 1.0
954-
payload: unknown;
955-
timestamp: Date;
950+
id: string - Unique identifier for the signal.
951+
sourceId: string - The ID of the source neuron that emitted the signal.
952+
type: ConnectionType - The type of connection ('excitatory' | 'inhibitory' | 'modulatory').
953+
strength: number - The strength of the signal (0.0 - 1.0).
954+
payload: unknown - The actual data payload carried by the signal.
955+
timestamp: Date - The timestamp when the signal was created.
956956
}
957957

958958
interface Decision {

0 commit comments

Comments
 (0)