mirror of
https://github.com/langchain-ai/langchain.git
synced 2026-10-11 12:25:12 +03:00
Added to `docs/how_to/tools_runtime` as a proof of concept, will apply everywhere if we like. A bit more compact than the default callouts, will help standardize the layout of our pages since we frequently use these boxes. <img width="1088" alt="Screenshot 2024-07-23 at 4 49 02 PM" src="https://github.com/user-attachments/assets/7380801c-e092-4d31-bcd8-3652ee05f29e">
19 lines
666 B
JavaScript
19 lines
666 B
JavaScript
import React from "react";
|
|
import Admonition from '@theme/Admonition';
|
|
|
|
export default function Compatibility({ packagesAndVersions }) {
|
|
return (
|
|
<Admonition type="caution" title="Compatibility" icon="📦">
|
|
<span style={{fontSize: "15px"}}>
|
|
The code in this guide requires{" "}
|
|
{packagesAndVersions.map(([pkg, version], i) => {
|
|
return (
|
|
<code key={`compatiblity-map${pkg}>=${version}-${i}`}>{`${pkg}>=${version}`}</code>
|
|
);
|
|
})}.
|
|
Please ensure you have the correct packages installed.
|
|
</span>
|
|
</Admonition>
|
|
);
|
|
}
|