@alneas/ai-core API Reference
@alneas/ai-core API Reference
Section titled “@alneas/ai-core API Reference”TYPE ActionResult
Section titled “TYPE ActionResult”Type ActionResult
type ActionResultTYPE ActionValidationResult
Section titled “TYPE ActionValidationResult”Result of input validation for an action.
type ActionValidationResultTYPE ActionValidator
Section titled “TYPE ActionValidator”Validator function for action input. Mandatory for all actions to ensure safe runtime execution.
type ActionValidatorINTERFACE ActionDefinition
Section titled “INTERFACE ActionDefinition”Definition of an executable action.
interface ActionDefinitionINTERFACE ActionDescriptor
Section titled “INTERFACE ActionDescriptor”Public descriptor of an action (excluding the executable handler). Safe to expose to UI lists, AI inspection, and external consumers.
interface ActionDescriptorTYPE ContextValueResult
Section titled “TYPE ContextValueResult”Result of retrieving a context value.
type ContextValueResultTYPE ContextGetter
Section titled “TYPE ContextGetter”Function that retrieves the current value of a context on demand.
type ContextGetterINTERFACE ContextDefinition
Section titled “INTERFACE ContextDefinition”Definition of an on-demand screen context provider.
interface ContextDefinitionINTERFACE ContextDescriptor
Section titled “INTERFACE ContextDescriptor”Public descriptor of a context (excluding the getter).
interface ContextDescriptorCLASS ActionRegistry
Section titled “CLASS ActionRegistry”Registry for managing explicit screen actions and on-demand context getters. Framework-independent, zero-dependency.
class ActionRegistryTYPE ActionToolInputSchema
Section titled “TYPE ActionToolInputSchema”Application-owned synchronous JSON Schema; finite JSON and supported drafts are checked at runtime.
type ActionToolInputSchemaTYPE ActionToolValue
Section titled “TYPE ActionToolValue”JSON values accepted at the tool boundary; functions, undefined and non-finite numbers are rejected.
type ActionToolValue