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
4 changes: 2 additions & 2 deletions docs/concepts/agent-loop.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ and is composed of four files:
[`react.py`](https://github.com/oracle-samples/locus/blob/main/src/locus/loop/react.py) (the runner),
[`nodes.py`](https://github.com/oracle-samples/locus/blob/main/src/locus/loop/nodes.py) (Think / Execute / Reflect / Terminate),
[`router.py`](https://github.com/oracle-samples/locus/blob/main/src/locus/loop/router.py) (transitions),
and [`agent_state.py`](https://github.com/oracle-samples/locus/blob/main/src/locus/loop/agent_state.py)
(the state value object).
and [`runner.py`](https://github.com/oracle-samples/locus/blob/main/src/locus/loop/runner.py)
(the loop driver that wires the nodes together).

## Origin: ReAct, then refinement

Expand Down
12 changes: 12 additions & 0 deletions docs/concepts/hooks.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,3 +67,15 @@ from locus.hooks.builtin import LoggingHook, GuardrailsHook

agent = Agent(..., hooks=[LoggingHook(), GuardrailsHook()])
```

## See also

- [Tutorial 05 — agent hooks](https://github.com/oracle-samples/locus/blob/main/examples/tutorial_05_agent_hooks.py)
— the basics, end to end.
- [Tutorial 27 — hooks advanced](https://github.com/oracle-samples/locus/blob/main/examples/tutorial_27_hooks_advanced.py)
— write-protected events, retry, cancel.
- [Tutorial 31 — plugins](https://github.com/oracle-samples/locus/blob/main/examples/tutorial_31_plugins.py)
— bundle hooks + tools + lifecycle into a reusable `Plugin`.
- [Retry Strategies](retry.md), [Safety & Guardrails](safety.md),
[Observability](observability.md) — the user-facing concept pages
for the built-in hooks.
2 changes: 1 addition & 1 deletion docs/concepts/mcp.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,4 +48,4 @@ different transports.

## Source

`src/locus/integrations/mcp/` — built on FastMCP.
`src/locus/integrations/fastmcp.py` — built on FastMCP.
3 changes: 2 additions & 1 deletion docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,7 @@ path. No magic, no hidden registries, no import-time side-effects.
| Skills · AgentSkills.io | [`src/locus/skills/`](https://github.com/oracle-samples/locus/tree/main/src/locus/skills) |
| Playbooks · enforcer | [`src/locus/playbooks/`](https://github.com/oracle-samples/locus/tree/main/src/locus/playbooks) |
| Evaluation harness | [`src/locus/evaluation/`](https://github.com/oracle-samples/locus/tree/main/src/locus/evaluation) |
| MCP client + server | [`src/locus/integrations/mcp/`](https://github.com/oracle-samples/locus/tree/main/src/locus/integrations/mcp) |
| MCP client + server | [`src/locus/integrations/fastmcp.py`](https://github.com/oracle-samples/locus/tree/main/src/locus/integrations/fastmcp.py) |
| A2A protocol | [`src/locus/a2a/`](https://github.com/oracle-samples/locus/tree/main/src/locus/a2a) |

Read the [concepts](concepts/agent.md) for the *why*; read the
Expand Down Expand Up @@ -395,6 +395,7 @@ The six in-process patterns plus A2A:
[Agent Server](https://github.com/oracle-samples/locus/blob/main/examples/tutorial_28_agent_server.py) ·
[Model providers](https://github.com/oracle-samples/locus/blob/main/examples/tutorial_29_model_providers.py) ·
[Guardrails advanced](https://github.com/oracle-samples/locus/blob/main/examples/tutorial_30_guardrails_advanced.py) ·
[Plugins](https://github.com/oracle-samples/locus/blob/main/examples/tutorial_31_plugins.py) ·
[Steering](https://github.com/oracle-samples/locus/blob/main/examples/tutorial_33_steering.py) ·
[Graph advanced](https://github.com/oracle-samples/locus/blob/main/examples/tutorial_35_graph_advanced.py) ·
[Termination](https://github.com/oracle-samples/locus/blob/main/examples/tutorial_37_termination.py).
Expand Down