Skip to content

Instantly share code, notes, and snippets.

@vicapow
Last active February 17, 2025 20:25
Show Gist options
  • Save vicapow/8f4f02fcfaf7b60592fcce2266f17d63 to your computer and use it in GitHub Desktop.
Save vicapow/8f4f02fcfaf7b60592fcce2266f17d63 to your computer and use it in GitHub Desktop.
Crixet Gist
\documentclass{standalone}
\usepackage{tikz}
\usepackage[sfdefault]{FiraSans}
\usepackage{xcolor}
\begin{document}
\begin{tikzpicture}
\definecolor{skyblue}{RGB}{200,200,255}
\definecolor{mintgreen}{RGB}{200,255,200}
\definecolor{sunnyyellow}{RGB}{255,255,200}
\definecolor{softred}{RGB}{255,190,190}
\pgfmathsetmacro{\gap}{0.2}
\pgfmathsetmacro{\top}{3 + \gap}
\pgfmathsetmacro{\topdistance}{\top - \gap}
\pgfmathsetmacro{\rightpos}{5}
\pgfmathsetmacro{\mid}{\rightpos * 0.75}
\pgfmathsetmacro{\cornerRadius}{2pt}
\filldraw[
fill=mintgreen,
draw=\color{mintgreen!90!black},
rounded corners=\cornerRadius
] (\gap, 0.6) rectangle (2,\topdistance);
% Draw rectangles with rounded corners
\filldraw[
fill=skyblue,
draw=skyblue!70!black,
rounded corners=\cornerRadius
] (0,0) rectangle (\rightpos,\top);
\filldraw[
fill=mintgreen,
draw=mintgreen!70!black,
rounded corners=\cornerRadius
] (\gap, 3 * \gap) rectangle (\mid - \gap, \topdistance - \gap);
\filldraw[
fill=mintgreen!30!white,
draw=mintgreen!70!black,
rounded corners=\cornerRadius
] (\gap * 2, \topdistance - \gap * 3) rectangle (\mid - \gap * 2, \topdistance - \gap * 5);
\filldraw[
fill=mintgreen!30!white,
draw=mintgreen!70!black,
rounded corners=\cornerRadius
] (\gap * 2, \topdistance - \gap * 6) rectangle (\mid - \gap * 2, \topdistance - \gap * 8);
\filldraw[
fill=mintgreen!30!white,
draw=mintgreen!70!black,
rounded corners=\cornerRadius
] (\gap * 2, \topdistance - \gap * 9) rectangle (\mid - \gap * 2, \topdistance - \gap * 11);
\filldraw[
fill=sunnyyellow,
draw=sunnyyellow!70!black,
rounded corners=\cornerRadius
] (\mid,\topdistance - \gap) rectangle (\rightpos - \gap,\gap);
\filldraw[
fill=softred,
draw=softred!70!black,
rounded corners=\cornerRadius
] (\gap, 0.5) rectangle (\mid - \gap,\gap);
\node[anchor=west] at (\gap - 0.1, \topdistance) {\scalebox{0.5}{\textbf{Agent runtime}}};
\node[anchor=west] at (\mid, \topdistance - 0.4) {\scalebox{0.4}{\textbf{Tools}}};
\node[anchor=west] at (\gap * 1.5, 0.35) {\scalebox{0.4}{\textbf{Model}}};
\node[anchor=west] at (0.25, \topdistance - \gap * 2) {\scalebox{0.4}{\textbf{Orchestration}}};
\node[anchor=west] at (\gap*2, \topdistance - \gap * 4) {\scalebox{0.3}{\textbf{Profile, goals, \& instructions}}};
\node[anchor=west] at (\gap*2, \topdistance - \gap * 7) {\scalebox{0.3}{\textbf{Memory}}};
\node[anchor=east, draw=mintgreen!90!black, dashed, rounded corners=\cornerRadius, inner sep=2pt] at (\mid - \gap * 6.0, \topdistance - \gap * 7) {
\scalebox{0.3}{\textbf{short-term}}
};
\node[anchor=east, draw=mintgreen!90!black, dashed, rounded corners=\cornerRadius, inner sep=2pt] at (\mid - \gap * 2.4, \topdistance - \gap * 7) {
\scalebox{0.3}{\textbf{long-term}}
};
\node[anchor=west] at (\gap * 2, \topdistance - \gap * 10) {\scalebox{0.3}{\textbf{Model based Reasoning / Planning }}};
\begin{scope}[
scale=0.2,
shift={(-14,4)}, % Adjust position as needed
every path/.style={line width=1.5pt} % Consistent line thickness
]
% Main face circle
\filldraw[fill=yellow!85!orange, draw=none] (3,3) circle (2cm);
% Eyes (left and right)
\filldraw[fill=black] (2.2,3.4) circle (0.25cm); % Left eye
\filldraw[fill=black] (3.8,3.4) circle (0.25cm); % Right eye
% Smiling mouth (arc)
\draw[black] (2.3,2.3) arc[start angle=-140, end angle=-40, radius=0.8cm];
\end{scope}
\draw[->, thick] (-1.6,1.4) -- (-0.4,1.4);
\node[anchor=west] at (-1.5, 1.2) {\scalebox{0.3}{\textbf{user\_query}}};
\draw[thick] (\rightpos / 2, 0) -- (\rightpos / 2,-0.4);
\draw[thick] (\rightpos / 2,-0.4) -- (-2.15,-0.4);
\draw[->, thick] (-2.15,-0.4) -- (-2.15, 0.8);
% This is a simple representation and can be adjusted for more detail or accuracy.
\end{tikzpicture}
\end{document}
@vicapow
Copy link
Author

vicapow commented Jan 31, 2025

Here's what it looks like:

287d1752-9105-42eb-b8e6-80c708d00899

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment