Skip to main content

Module toolkit

Module toolkit 

Source
Expand description

Stateless X API utility toolkit.

Provides pure, stateless functions for all X API operations. Each function takes &dyn XApiClient and operation-specific parameters, performs input validation, and delegates to the client trait.

No policy enforcement, audit logging, rate limiting, or DB access here. Those concerns belong in the workflow layer (AD-04, AD-12).

Modules§

engage
Stateless engagement operations over &dyn XApiClient.
media
Stateless media operations over &dyn XApiClient.
profile_inference
Profile inference engine for onboarding.
read
Stateless read operations over &dyn XApiClient.
write
Stateless write operations over &dyn XApiClient.

Enums§

ToolkitError
Errors from toolkit operations.

Constants§

MAX_TWEET_LENGTH
Maximum tweet length enforced by the X API.

Functions§

validate_tweet_length
Validate tweet text length (stateless check).