Skip to content

Instantly share code, notes, and snippets.

@jgoodie
Created November 4, 2024 03:33
Show Gist options
  • Save jgoodie/b9909390550c994708227149a56e2186 to your computer and use it in GitHub Desktop.
Save jgoodie/b9909390550c994708227149a56e2186 to your computer and use it in GitHub Desktop.
Define the llm and the agent state class
llm = ChatOpenAI(model="gpt-4o", temperature=0)
class TavilyState(TypedDict):
question: str
answer: str
context: Annotated[list, operator.add]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment