Skip to content

Commit 9a69c05

Browse files
styles
1 parent 912d72c commit 9a69c05

File tree

3 files changed

+85
-20
lines changed

3 files changed

+85
-20
lines changed

docs/assets/invariant.css

Lines changed: 72 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,17 +28,13 @@ body {
2828

2929
background-color: #f6f6f6;
3030

31-
--text-color: #0C0C13;
31+
--text-color: #1c1c1c;
3232
}
3333

3434
.trace-container {
3535
position: relative;
3636
}
3737

38-
h1 {
39-
font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
40-
}
41-
4238
.md-header {
4339
background-color: white;
4440
border-bottom: 1px solid #E5E5E5;
@@ -76,7 +72,7 @@ h1 {
7672
color: var(--text-color);
7773

7874
color: #0C0C13;
79-
font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
75+
font-family: NeueMontreal, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif !important;
8076
font-size: 38px;
8177
font-style: normal;
8278
line-height: 52px;
@@ -115,6 +111,15 @@ a:visted {
115111
box-shadow: none;
116112
color: var(--text-color);
117113
border-radius: 50pt !important;
114+
margin-top: 2pt;
115+
}
116+
117+
@media screen and (max-width:60em) {
118+
.md-search__form {
119+
margin-top: 5pt;
120+
margin-left: 5pt;
121+
margin-right: 5pt;
122+
}
118123
}
119124

120125
.md-search__form input {
@@ -127,6 +132,14 @@ a:visted {
127132
opacity: 0.5;
128133
}
129134

135+
.md-search-result__item a {
136+
text-decoration: none !important;
137+
}
138+
139+
.md-search {
140+
margin-right: 5pt;
141+
}
142+
130143
.md-search__output {
131144
margin-top: 10pt;
132145
border-radius: 2pt;
@@ -995,4 +1008,57 @@ ul.md-nav__list {
9951008
color: var(--md-code-hl-function-color);
9961009
font-weight: 500;
9971010
font-family: monospace;
1011+
}
1012+
1013+
.md-typeset ul li, .md-typeset ol li {
1014+
font-size: 14pt;
1015+
}
1016+
1017+
.md-sidebar--primary .md-sidebar__scrollwrap {
1018+
overflow-y: visible;
1019+
}
1020+
1021+
.md-header__title {
1022+
padding-left: 30pt;
1023+
padding-top: 2pt;
1024+
background: url("../assets/logo.svg") no-repeat 5pt 60%;
1025+
background-size: 20pt;
1026+
color: var(--text-color);
1027+
}
1028+
1029+
.md-header__inner .md-header__button.md-logo {
1030+
width: 210pt;
1031+
position: absolute;
1032+
top: 0pt;
1033+
left: 0pt;
1034+
height: 35pt;
1035+
border-radius: 4pt;
1036+
1037+
background-color: rgba(0, 0, 0, 0.0);
1038+
}
1039+
1040+
.md-header__inner .md-header__button.md-logo:hover {
1041+
background-color: rgba(0, 0, 0, 0.05);
1042+
}
1043+
1044+
.md-header__inner .md-header__button.md-logo img {
1045+
display: none;
1046+
}
1047+
1048+
.md-header__inner label.md-header__button.md-icon[for=__drawer] {
1049+
border: 1pt solid #E5E5E5;
1050+
border-radius: 5pt;
1051+
padding: 2.5pt;
1052+
margin: 4pt;
1053+
margin-top: 8pt;
1054+
margin-left: 7pt;
1055+
}
1056+
1057+
.md-dialog {
1058+
background-color: #3a3e60;
1059+
border-radius: 15pt;
1060+
line-height: 10pt;
1061+
padding-left: 15pt;
1062+
font-weight: 500;
1063+
height: 30pt;
9981064
}

docs/guardrails/explorer.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ It also enables quick experimentation with new guardrails, without having to wor
116116

117117
Lastly, to inspect guardrail failures in detail, navigate to the `Traces` tab in your Explorer project.
118118

119-
Newly pushed traces with Guardrail violations will be automatically annoated with Guardrail violation annotations, highlighting the exact range and location of the guardrail violation in the agent trace.
119+
Newly pushed traces with Guardrail violations will be automatically annotated with Guardrail violation annotations, highlighting the exact range and location of the guardrail violation in the agent trace.
120120

121121
<figure style="display: block; margin: 0 auto; width: 100%; max-width: 800pt !important; border: 2pt solid #efefef; padding: 10pt; background-color: white;">
122122
<img src="site:/guardrails/guardrail-highlight.png" alt="New Guardrail" class="invariant-architecture" style="display: block; margin: 0 auto; width: 100%; max-width: 650pt;"/>

docs/index.md

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -5,20 +5,20 @@ title: Invariant Agent Security
55
# Invariant Agent Security
66

77
<div class='subtitle'>
8-
Integrate Invariant's contextual guardrailing for high-precision agent security, monitoring and reliability.
8+
Use Invariant Guardrails for high-precision agent security, monitoring and to ensure reliable and consistent behavior.
99
</div>
1010

11-
Invariant is a **security layer to protect agentic AI systems**. It helps you prevent prompt injections, data leaks, steer your agent's behavior, and ensure compliance with your organization's policies.
11+
Invariant is a **security layer to protect agentic AI systems**. It helps you to prevent prompt injections, data leaks, steers your agent, and ensures strict compliance with behavioral and security policies for your AI systems.
1212

13-
You can **deploy Invariant within minutes using our hosted gateway**, to ensure quick response to agent security incidents and to get your agent ready for production.
13+
You can **deploy Invariant within minutes using our hosted LLM-level gateway**, to ensure quick response to agent security incidents and to get your agent ready for production.
1414

1515
### How Invariant Works
1616

1717
Invariant acts as a transparent layer between your agent system and the LLM and tool providers. It intercepts all LLM calls and tool actions, and applies steering rules according to a provided guardrailing policies.
1818

1919
Policies are defined in terms of both [deterministic and fuzzy rules](./guardrails/). During operation, your agent is continuously evaluated against them, to restrict its behavior to prevent malfunction and abuse.
2020

21-
Invariant does not require invasive code changes, and can be used with any agent, framework and LLM.
21+
Invariant does not require invasive code changes, and can be used with any model, agent, framework and tooling. It is designed to be easy to use and integrate into your existing stack, right from the beginning or when _you_ are ready to ship.
2222

2323
<br/><br/>
2424
<img src="./assets/invariant-overview.svg" alt="Invariant Architecture" class="invariant-architecture" style="display: block; margin: 0 auto; width: 100%; max-width: 500pt;"/>
@@ -51,19 +51,18 @@ This documentation describes how to set up Invariant and the relevant guardraili
5151

5252
Invariant helps you make sure that your agents are safe from malicious actors and prevents fatal malfunction:
5353

54-
* It **blocks prompt injections and agent jailbreaks**.
55-
* It **imposes strict rules on agent capabilities** and behavior, to prevent malfunction and abuse.
56-
* It **analyzes the data flow of your agents**, to ensure that they are not leaking sensitive information.
57-
* It helps you **steer and control your agents**, to ensure that they are not doing anything unexpected.
58-
* It ensures that your agents are **in compliance with your organization's policies**.
59-
* It helps you to **surface novel malicious behavioral patterns** in your agents, and automatically proposes guardrailing rules to prevent them.
54+
* It **blocks [prompt injections and agent jailbreaks](./guardrails/prompt-injections.md)**.
55+
* It **imposes [strict rules on agent capabilities](./guardrails/index.md)** and behavior, to prevent malfunction and abuse.
56+
* It constantly **analyzes the [data flow of your agents](./guardrails/dataflow-rules.md)**, to ensure that they are not leaking sensitive information or engaging in off-policy behavior.
57+
* It ensures that your agents are **in [compliance with your organization's policies](./guardrails/tool-calls.md)**.
58+
* It helps you to **[surface novel malicious behavioral patterns](./guardrails/explorer.md)** in your agents, and automatically proposes guardrailing rules to prevent them.
6059

61-
Securing your agent is a crucial step in safely deploying AI agents to production or in your organization.
60+
Securing your agent is a crucial step in safely deploying AI agents to production for public or internal use, and ensuring that they behave as expected.
6261

6362

6463
## Getting Started as Developer
6564

66-
The _Invariant Gateway_ **intercepts the LLM calls of your agent**, to implement _guardrailing and security analysis_, without requiring major code changes:
65+
The _Invariant Gateway_ **intercepts the LLM calls of your agent**, to implement _steering and guardrailing_on, without requiring major code changes:
6766

6867
<br/>
6968
<div class='overview'>
@@ -84,7 +83,7 @@ The _Invariant Gateway_ **intercepts the LLM calls of your agent**, to implement
8483
</div>
8584
<br/>
8685

87-
To quickly secure your agentic application with Invariant, you can rely on our hosted gateway. It automatically traces and protects your agent's LLM calls and actions by enforcing guardrailing rules:
86+
To quickly secure your agentic application with Invariant, you can rely on our hosted LLM-level gateway. It automatically traces and protects your agent's LLM calls and actions by enforcing guardrailing rules:
8887

8988
**Example:** Guardrailing an agent with Invariant
9089
```python hl_lines='8 9 10 16 17 18 19 20 21 22 23 24'

0 commit comments

Comments
 (0)