Skip to content

Add version badges #329

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Sep 24, 2024
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
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;
}