Skip to main content

Crate perspt_core

Crate perspt_core 

Source
Expand description

perspt-core: Core types and LLM provider abstraction

Re-exports§

pub use config::Config;
pub use config::ContextConfig;
pub use config::ExplorationConfig;
pub use config::ExternalOracleConfig;
pub use config::ExternalToolConfig;
pub use config::ExternalToolMode;
pub use config::ExternalToolPolicy;
pub use config::ExternalToolTransport;
pub use config::McpRootConfig;
pub use config::ModelsConfig;
pub use config::PromptsConfig;
pub use config::ProviderEntry;
pub use config::TestPolicy;
pub use events::ActionType;
pub use events::AgentAction;
pub use events::AgentEvent;
pub use events::NodeStatus;
pub use llm_provider::detect_provider_from_env;
pub use llm_provider::GenAIProvider;
pub use llm_provider::LlmResponse;
pub use llm_provider::ResolvedProvider;
pub use llm_provider::EOT_SIGNAL;
pub use memory::ProjectMemory;
pub use plugin::InitOptions;
pub use plugin::JsPlugin;
pub use plugin::LanguagePlugin;
pub use plugin::LspConfig;
pub use plugin::PluginRegistry;
pub use plugin::PythonPlugin;
pub use plugin::RustPlugin;
pub use portfolio::declared_caps;
pub use portfolio::ModelPortfolio;
pub use portfolio::ProviderCaps;
pub use portfolio::ProviderHandle;
pub use tools_driver::CoreMessage;
pub use tools_driver::CoreToolCall;
pub use tools_driver::CoreToolChoice;
pub use tools_driver::CoreToolSpec;
pub use tools_driver::CoreTurnOutput;
pub use tools_driver::CoreTurnStreamEvent;
pub use types::CommandContract;
pub use types::EnergyComponents;
pub use types::ModelTier;
pub use types::PlannedContract;
pub use types::PlannedTask;
pub use types::PlannedTest;
pub use types::SensorStatus;
pub use types::StageOutcome;
pub use types::TaskPlan;
pub use types::TaskType;

Modules§

config
Configuration types for Perspt.
events
Agent Events
llm_provider
LLM Provider Module
local_command
Provider-independent commands handled entirely by Perspt frontends.
memory
PERSPT.md Parser - Project Memory
normalize
Provider-Neutral Output Normalization
path
Canonical path resolution for artifact paths.
paths
Centralized platform-aware path helpers for Perspt.
plugin
Language Plugin Architecture
portfolio
Model portfolio: several concurrently live provider handles (PSP-9 systems 1–2).
prompts
The platform prompt section library (PSP-10 systems 23 and 25).
tools_driver
The genai tool-calling driver (PSP-9 system 4).
types
Core shared types: model tiers, energy components, task plans, verification stage outcomes, and plugin policy decisions.