Skip to content

Commit

Permalink
Merge pull request #329 from PrefectHQ/version
Browse files Browse the repository at this point in the history
Add version badges
  • Loading branch information
jlowin authored Sep 24, 2024
2 parents eac3c56 + 793cb5f commit 168b90e
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/guides/default-memory.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@ sidebarTitle: Default Memory Provider
description: Set up a default persistent memory provider for your agents
icon: brain
---
import { VersionBadge } from '/snippets/version-badge.mdx'

<VersionBadge version="0.10.0" />
ControlFlow's [memory](/patterns/memory) feature allows agents to store and retrieve information across multiple workflows. Memory modules are backed by a vector database, configured using a `MemoryProvider`.

Setting up a default provider simplifies the process of creating memory objects throughout your application. Once configured, you can create memory objects without specifying a provider each time.
Expand Down
3 changes: 3 additions & 0 deletions docs/patterns/memory.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,11 @@ title: Memory
description: Enhance your agents with persistent memories.
icon: bookmark
---
import { VersionBadge } from '/snippets/version-badge.mdx'


<VersionBadge version="0.10.0" />


Within an agentic workflow, information is naturally added to the [thread history](/patterns/history) over time, making available to all agents who participate in the workflow. However, that information is not accessible from other threads, even if they relate to the same objective or resources.

Expand Down
9 changes: 9 additions & 0 deletions docs/snippets/version-badge.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
export const VersionBadge = ({ version }) => {


return (
<span className="version-badge">
Added in version {version}
</span>
);
};
18 changes: 18 additions & 0 deletions docs/style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
.version-badge {
display: inline-block;
padding: 0.2em 0.5em;
font-size: 0.75em;
font-weight: bold;
color: #e44bf4;
background-color: #fce8fd;
border: 1px solid #f2a5f9;
border-radius: 4px;
vertical-align: middle;
margin-left: 0.5em;
}

.dark .version-badge {
color: #f17afc;
background-color: rgba(228, 75, 244, 0.2);
border-color: #783d7e;
}

0 comments on commit 168b90e

Please sign in to comment.