infrastructure capa

infrastructure-prompts

_No description in Cargo.toml._

Tierinfrastructure
Roleinfrastructure
Pathcrates/infrastructure/prompts
Edition2021
Targetsinfrastructure_prompts
Public items0 across 0 modules
Tests2

What it is for

Library crates for AI prompt template management.

Provides versioned, DB-stored prompt templates for AI enrichment pipelines. Templates are matched to items by category and resolved at runtime with fallback to hardcoded defaults.

# Features

Capabilities

No public items.

How to use it

No examples/ target and no doctest in this crate's rustdoc. The tests listed under Verification are the closest executable usage.

Module structure

No public modules: the crate root is its whole surface.

Public surface

No public items.

Re-exports. Exported here, defined elsewhere.

ExportDefined in
PromptTemplateVersionversion::PromptTemplateVersion
{MatchRules,PromptKind,PromptTemplate}template::{MatchRules,PromptKind,PromptTemplate}

Boundary

Depends on no other workspace tier.

Shares tier infrastructure with 82 other crates: infrastructure-acquire, infrastructure-adapters-google-calendar, infrastructure-adapters-google-gmail, infrastructure-adapters-google-places, infrastructure-adapters-google-trends, infrastructure-adapters-shodan, infrastructure-adapters-yelp, infrastructure-agent, … (82 total).

_What this crate deliberately does NOT own is a judgment. No committed registry records one for it, so none is stated here._

Where it sits

Tier (ontology)infrastructure
Architectural role (taxonomy)infrastructure
Locationcrates/infrastructure/prompts
Vocabulary in force (lexicon)current

Dependencies

Runtime, from outside the workspace.

CrateRequirementFeaturesOptionalOnly on
chrono^0.4serdenoalways
serde^1derivenoalways
serde_json^1noalways
sqlx^0.8runtime-tokio, postgres, chrono, uuid, jsonyesalways
uuid^1v4, v7, serde, jsnoalways

Development. None.

Build. None.

Depended on by. 2 workspace crates.

Signal flow — what reaches this crate, and what it reaches.

flowchart LR
  n_application_prompts["application-prompts"] -->|uses| SELF
  n_domain_classify["domain-classify"] -->|uses| SELF
  SELF["infrastructure-prompts"]
  classDef self fill:#1f883d,stroke:#1f883d,color:#fff;
  class SELF self;

Feature flags

FeatureEnablesOn by default
defaultyes
postgresdep:sqlxno
flowchart LR
  n_default["default"]
  n_postgres["postgres"] --> n_dep_sqlx["dep:sqlx"]

Targets

KindNameSource
libinfrastructure_prompts`src/lib.rs`

Error model

No public error type was detected: no public item declares a type named *Error, and no public signature returns one.

Operational characteristics

PropertyEvidence
async public surfacenone detected
async runtimenone detected
database accessyes
network I/Onone detected
unsafe codenone detected
environment variablesnone detected

No unsafe block, unsafe fn, unsafe impl or unsafe trait was found by the parser anywhere in this crate's source.

Configuration

No environment variable is read with a literal name anywhere in this crate. A variable whose key is computed at run time cannot be listed here, and is not claimed to be absent.

2 workspace crates depend on this one: application-prompts, domain-classify.

Verification

KindCount
Unit tests2
Integration tests0
Examples0
Doctests0

What the tests establish, by name:

Documentation coverage

MeasureDocumentedTotal
Public items with rustdoc00
Public modules with a //! block00

Metrics

MetricValue
Rust source files3
Source lines157
Code lines112
Public API items0
Public modules0
Tests2
Examples0
Cargo features2
Direct runtime dependencies5
Workspace reverse dependencies2
pie showData
    title Rust source composition
    "Code" : 112
    "Blank or comment" : 45

Generation

Rendered by tools-corpus corpus readme from repository evidence alone, renderer schema 2, lexicon current. No model, network service or database was consulted. Regenerate with tools-corpus corpus readme --write; verify with --check.

Todas las infrastructure · Manual