Skip to content

Instantly share code, notes, and snippets.

View anatolyburtsev's full-sized avatar

anatolii burtsev anatolyburtsev

  • Amazon Web Services
  • Vancouver
View GitHub Profile
@anatolyburtsev
anatolyburtsev / py
Created July 28, 2025 21:00
Deepeval langgraph integration bug when tool returns boolean
import os
from typing import TypedDict
from dotenv import load_dotenv
import deepeval
from deepeval.integrations.langchain import CallbackHandler
from langgraph.graph import StateGraph
from langchain_core.tools import tool
load_dotenv()
deepeval.login_with_confident_api_key(os.getenv("CONFIDENT_AI_API_KEY"))
m = [
[0, 0, 1, 0, 0, 1],
[0, 0, 0, 0, 0, 1],
[0, 0, 0, 0, 0, 0],
[1, 0, 1, 0, 1, 1],
[0, 1, 1, 0, 0, 0],
[0, 0, 0, 0, 0, 0]
]
def topological_sort(m)
vertex = {}
m = [
[0, 0, 1, 0, 0, 1],
[0, 0, 0, 0, 0, 1],
[0, 0, 0, 0, 0, 0],
[1, 0, 1, 0, 1, 1],
[0, 1, 1, 0, 0, 0],
[0, 0, 0, 0, 0, 0]
]
def check_for_transitivity(m):
import numpy as np
def is_matrix_asym(m):
return np.multiply(m, m.T).max() == 0
def is_matrix_transit(m1):
return ((np.dot(m1, m1)> 0) <= (m1 > 0)).min()
s = 0
for i0 in [0,1]:
#!/bin/sh
echo "Provisioning success" $1 $2 $3
// Just before switching jobs:
// Add one of these.
// Preferably into the same commit where you do a large merge.
//
// This started as a tweet with a joke of "C++ pro-tip: #define private public",
// and then it quickly escalated into more and more evil suggestions.
// I've tried to capture interesting suggestions here.
//
// Contributors: @r2d2rigo, @joeldevahl, @msinilo, @_Humus_,
// @YuriyODonnell, @rygorous, @cmuratori, @mike_acton, @grumpygiant,