Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.egisai.co/llms.txt

Use this file to discover all available pages before exploring further.

The egisai package exposes a small public surface. Everything you need for day-to-day use is listed below; everything else is private and may change between releases.

Functions

FunctionUse
egisai.init()Activate the SDK for the current process.
egisai.set_context()Attach request-scoped metadata (agent identity, user, session).
egisai.shutdown()Stop background workers and flush remaining events. Idempotent.
egisai.evaluate_policies()Run input-side policies synchronously and return a PolicyDecision.
egisai.evaluate_output_policies()Run output-side policies synchronously and return a PolicyDecision.

Types

TypeUse
PolicyRuleA single active rule.
PolicyContextInputs for input-side rule evaluation.
OutputPolicyContextInputs for output-side rule evaluation.
PolicyDecisionVerdict and matched rules returned by the evaluator.

Module attributes

AttributeDescription
egisai.__version__Installed SDK version, for example "0.10.0".

Stability

egisai’s public surface follows semantic versioning. Anything documented on this site is part of the public API. Anything not documented here — including modules whose names start with an underscore — is private and may change without notice.

Where to start

init

Activate the SDK with one call.

set_context

Attach per-request metadata to governed calls.

shutdown

Cleanly stop background workers.

Types

PolicyRule, PolicyContext, PolicyDecision, …