Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions docs/examples/chat-with-multimodal.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# Chat with multi-turn memory and a multimodal turn

!!! info "Source"
[https://github.com/LunarCommand/openarmature-python/blob/main/examples/chat-with-multimodal/main.py](https://github.com/LunarCommand/openarmature-python/blob/main/examples/chat-with-multimodal/main.py){target="_blank" rel="noopener"}

A lunar-mission Q&A assistant that maintains conversation context
across four turns. One mid-conversation turn includes an attached
photograph (Apollo 16 Lunar Module "Orion" on the lunar surface):
Expand Down
3 changes: 3 additions & 0 deletions docs/examples/checkpointing-and-migration.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# Checkpointing and migration

!!! info "Source"
[https://github.com/LunarCommand/openarmature-python/blob/main/examples/checkpointing-and-migration/main.py](https://github.com/LunarCommand/openarmature-python/blob/main/examples/checkpointing-and-migration/main.py){target="_blank" rel="noopener"}

A lunar-mission planning pipeline that writes a SQLite checkpoint
after every step, survives a simulated mid-pipeline crash, and then
resumes the saved invocation under an upgraded state schema with a
Expand Down
3 changes: 3 additions & 0 deletions docs/examples/explicit-subgraph-mapping.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# Explicit subgraph mapping

!!! info "Source"
[https://github.com/LunarCommand/openarmature-python/blob/main/examples/explicit-subgraph-mapping/main.py](https://github.com/LunarCommand/openarmature-python/blob/main/examples/explicit-subgraph-mapping/main.py){target="_blank" rel="noopener"}

Compare two topics by running the *same* compiled analysis subgraph
on each, with each call site writing into disjoint parent fields.
This is the canonical use of `ExplicitMapping`.
Expand Down
3 changes: 3 additions & 0 deletions docs/examples/fan-out-with-retry.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# Fan-out with retry

!!! info "Source"
[https://github.com/LunarCommand/openarmature-python/blob/main/examples/fan-out-with-retry/main.py](https://github.com/LunarCommand/openarmature-python/blob/main/examples/fan-out-with-retry/main.py){target="_blank" rel="noopener"}

Summarize a batch of lunar-mission headlines in parallel, with
per-headline retry and timing middleware wrapping each instance's
subgraph run.
Expand Down
3 changes: 3 additions & 0 deletions docs/examples/hello-world.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# Hello, world

!!! info "Source"
[https://github.com/LunarCommand/openarmature-python/blob/main/examples/hello-world/main.py](https://github.com/LunarCommand/openarmature-python/blob/main/examples/hello-world/main.py){target="_blank" rel="noopener"}

The smallest possible LLM-routed pipeline: classify a query, then
either plan research on it or summarize it in one sentence. Sets the
shape every other example builds on.
Expand Down
3 changes: 3 additions & 0 deletions docs/examples/langfuse-observability.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# Langfuse observability

!!! info "Source"
[https://github.com/LunarCommand/openarmature-python/blob/main/examples/langfuse-observability/main.py](https://github.com/LunarCommand/openarmature-python/blob/main/examples/langfuse-observability/main.py){target="_blank" rel="noopener"}

Send LLM call observability to Langfuse natively: Trace at the top,
Span observations for graph nodes, Generation observations with input,
output, token usage, model parameters, and a native link back to the
Expand Down
3 changes: 3 additions & 0 deletions docs/examples/multimodal-prompt.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# Multimodal prompt

!!! info "Source"
[https://github.com/LunarCommand/openarmature-python/blob/main/examples/multimodal-prompt/main.py](https://github.com/LunarCommand/openarmature-python/blob/main/examples/multimodal-prompt/main.py){target="_blank" rel="noopener"}

Two independent analyses of a lunar-mission photograph using
versioned prompt templates, a fallback prompt backend, and a
multimodal user message that carries both text and image.
Expand Down
3 changes: 3 additions & 0 deletions docs/examples/nested-subgraphs.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# Nested subgraphs

!!! info "Source"
[https://github.com/LunarCommand/openarmature-python/blob/main/examples/nested-subgraphs/main.py](https://github.com/LunarCommand/openarmature-python/blob/main/examples/nested-subgraphs/main.py){target="_blank" rel="noopener"}

Question answering against a tiny baked-in document corpus, with
two levels of subgraph nesting: outer coordinator, middle doc-QA,
inner section-extract.
Expand Down
3 changes: 3 additions & 0 deletions docs/examples/observer-hooks.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# Observer hooks

!!! info "Source"
[https://github.com/LunarCommand/openarmature-python/blob/main/examples/observer-hooks/main.py](https://github.com/LunarCommand/openarmature-python/blob/main/examples/observer-hooks/main.py){target="_blank" rel="noopener"}

Add observability to a `draft → review → finalize` pipeline without
touching any node code. Three observer flavors run side-by-side: a
console tracer, a per-invocation metrics collector, and the
Expand Down
3 changes: 3 additions & 0 deletions docs/examples/parallel-branches.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# Parallel branches

!!! info "Source"
[https://github.com/LunarCommand/openarmature-python/blob/main/examples/parallel-branches/main.py](https://github.com/LunarCommand/openarmature-python/blob/main/examples/parallel-branches/main.py){target="_blank" rel="noopener"}

Enrich a lunar-mission news article with three independent
analyses (one-sentence summary, sentiment label, topic tags)
running concurrently as separate subgraphs.
Expand Down
3 changes: 3 additions & 0 deletions docs/examples/production-observability.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# Production observability with dual observers and timing middleware

!!! info "Source"
[https://github.com/LunarCommand/openarmature-python/blob/main/examples/production-observability/main.py](https://github.com/LunarCommand/openarmature-python/blob/main/examples/production-observability/main.py){target="_blank" rel="noopener"}

A single-turn lunar-mission Q&A endpoint instrumented the way you'd
ship it: BOTH OTel and Langfuse observers attached to the same
graph, caller hooks deriving domain-shaped `trace.input` /
Expand Down
3 changes: 3 additions & 0 deletions docs/examples/routing-and-subgraphs.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# Routing and subgraphs

!!! info "Source"
[https://github.com/LunarCommand/openarmature-python/blob/main/examples/routing-and-subgraphs/main.py](https://github.com/LunarCommand/openarmature-python/blob/main/examples/routing-and-subgraphs/main.py){target="_blank" rel="noopener"}

A question-answering assistant. Classify the question, then either
give a one-shot quick answer or run a multi-step research
sub-pipeline, then lightly copy-edit the result.
Expand Down
3 changes: 3 additions & 0 deletions docs/examples/tool-use.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# Tool use

!!! info "Source"
[https://github.com/LunarCommand/openarmature-python/blob/main/examples/tool-use/main.py](https://github.com/LunarCommand/openarmature-python/blob/main/examples/tool-use/main.py){target="_blank" rel="noopener"}

A lunar-mission assistant that calls local Python tools to answer
questions mixing fact recall and physics arithmetic about Apollo
and Artemis missions.
Expand Down
37 changes: 37 additions & 0 deletions docs/stylesheets/extra.css
Original file line number Diff line number Diff line change
Expand Up @@ -285,6 +285,43 @@
padding-left: 0.75rem;
}

/* Source-box callout color (the ``!!! info "Source"`` admonition
* inserted between the H1 and lead paragraph on every example
* walk-through doc). Material's default ``info`` admonition uses
* a blue accent; this override paints it in the project lavender
* to match the ``#9d4edd`` brand purple and inline-code color
* (``#e4c1f9`` ≈ rgb(228, 193, 249)) used elsewhere in the slate
* theme. Scoped to ``.admonition.info``; currently the only
* ``!!! info`` usage in the docs is the Source callout, so this
* effectively styles "the Source box". If a future doc adds a
* non-Source info admonition that should stay blue, switch the
* walk-through callouts to a custom ``!!! source`` type and
* re-scope this rule to ``.admonition.source``. */
.md-typeset .admonition.info,
.md-typeset details.info {
border-color: rgb(228, 193, 249);
}

.md-typeset .admonition.info > .admonition-title,
.md-typeset details.info > summary {
background-color: rgba(228, 193, 249, 0.1);
}

.md-typeset .admonition.info > .admonition-title::before,
.md-typeset details.info > summary::before {
background-color: rgb(228, 193, 249);
}

/* Source-box link color (slate theme). The default slate link
* color (``#9d4edd`` purple) clashes with the lavender source-box
* accent; switch the link inside the source admonition to the
* dark-theme body-text tone so the URL reads as content rather
* than as a highlighted action. Selector specificity beats the
* general ``[data-md-color-scheme="slate"] .md-typeset a`` rule. */
[data-md-color-scheme="slate"] .md-typeset .admonition.info a {
color: rgba(226, 228, 233, 0.82);
}

/* The vertical guide line, rendered as a ::before pseudo-element
* (so it can stop 5px short of the nav's bottom edge via
* ``top: 0; bottom: 5px``). Scoped to any sub-section whose nested
Expand Down