I hereby claim:
- I am garretjames on github.
- I am garretjames (https://keybase.io/garretjames) on keybase.
- I have a public key ASAYuuBeEADzn-CSHKtZGMKL6yOLRgaOBGRtOGk8cJ-9pwo
To claim this, I am signing this object:
from langchain_openai import AzureChatOpenAI | |
import getpass | |
import os | |
from langchain_core.messages import AIMessage, BaseMessage, HumanMessage | |
from langchain_core.prompts import ChatPromptTemplate, MessagesPlaceholder | |
from typing import Annotated, List, Sequence | |
from langgraph.graph import END, StateGraph, START | |
from langgraph.graph.message import add_messages | |
from langgraph.checkpoint.memory import MemorySaver |
import { useState } from "react"; | |
export default function useToggle(defaultValue){ | |
const [value, setValue] = useState(defaultValue); | |
function toggleValue(value) { | |
setValue(currValue => typeof value === "boolean" ? value : !currValue) | |
} | |
return [value, toggleValue] |
export function getCurrentDate(separator=''){ | |
let newDate = new Date() | |
let date = newDate.getDate(); | |
let month = newDate.getMonth() + 1; | |
let year = newDate.getFullYear(); | |
return `${year}${separator}${month<10?`0${month}`:`${month}`}${separator}${date}` | |
} |
I hereby claim:
To claim this, I am signing this object: