Skip to content

Instantly share code, notes, and snippets.

@vbarda
vbarda / react_agent_structured_output.py
Last active August 4, 2025 04:23
react_agent_structured_output
from pydantic import BaseModel, Field
from typing import Literal
from langchain_core.tools import tool
from langchain_anthropic import ChatAnthropic
from langgraph.graph import MessagesState
class WeatherResponse(BaseModel):
"""Respond to the user with this"""
@vbarda
vbarda / f5_config_parser.py
Last active December 6, 2020 13:48
F5 Config Parser
import lark
import re
f5_config_grammar = r"""
// define rules
?start: array
?value: object
| value_set
| string
@vbarda
vbarda / gradient descent.ipynb
Created March 3, 2017 19:17
Simple Gradient Descent
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.