Skip to content

Instantly share code, notes, and snippets.

View SentientDragon5's full-sized avatar
💫
See you later Space Cowboy ...

Logan SentientDragon5

💫
See you later Space Cowboy ...
View GitHub Profile
@SentientDragon5
SentientDragon5 / simple-dark-orange.css
Created April 24, 2025 03:52
A simple grey and orange theme.
/* --- Modern Dark Orange Theme for remark.js --- */
/* --- Import Fonts (Optional - Requires internet connection) --- */
@import url('https://fonts.googleapis.com/css2?family=Lato:wght@400;700&family=Montserrat:wght@700&display=swap');
/* --- Base Styles --- */
body {
font-family: 'Lato', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
background-color: #1e1e1e; /* Base background for outside slides */
color: #f0f0f0; /* Default text color */
@SentientDragon5
SentientDragon5 / langchainToolCalling.js
Created April 16, 2025 23:49
This is an example of Langchain Tool calling using Gemini.
import { ChatGoogleGenerativeAI } from "@langchain/google-genai";
import { HumanMessage, AIMessage, ToolMessage } from "@langchain/core/messages";
import { tool } from "@langchain/core/tools";
import { z } from "zod";
let tools = [];
// this stores backwards references to the tool functions from their names
let toolsByName = {};