repo_id
stringclasses
400 values
commit_sha
stringclasses
400 values
commit_index
int32
0
951
in_repo_split
stringclasses
1 value
cross_repo_split
stringclasses
1 value
test_file
stringlengths
7
121
test_function
stringlengths
1
108
assertion_type
stringclasses
32 values
difficulty
stringclasses
8 values
context_lines
int32
3
600
prefix
large_stringlengths
44
113k
target
large_stringlengths
1
498
anchor_sha
stringclasses
400 values
anchor_index
int32
0
951
qna_source
stringclasses
1 value
JWock82/Pynite
b9af2102f90edff6a3d42b1c981a7ec68139da6c
91
train
train
Testing/test_Visualization.py
test_set_case
self.assertIsNone
complex_expr
56
from io import BytesIO import unittest from unittest.mock import MagicMock import vtk from Pynite import FEModel3D from Pynite.Visualization import Renderer from IPython.display import Image class TestRenderer(unittest.TestCase): def setUp(self): # Create a model to visualize self.beam_model = FE...
self.renderer.combo_name)
b9af2102f90edff6a3d42b1c981a7ec68139da6c
91
v2_extractor_at_anchor
JWock82/Pynite
b9af2102f90edff6a3d42b1c981a7ec68139da6c
91
train
train
Testing/test_Visualization.py
test_set_scalar_bar
self.assertTrue
complex_expr
55
from io import BytesIO import unittest from unittest.mock import MagicMock import vtk from Pynite import FEModel3D from Pynite.Visualization import Renderer from IPython.display import Image class TestRenderer(unittest.TestCase): def setUp(self): # Create a model to visualize self.beam_model = FE...
self.renderer.scalar_bar)
b9af2102f90edff6a3d42b1c981a7ec68139da6c
91
v2_extractor_at_anchor
JWock82/Pynite
b9af2102f90edff6a3d42b1c981a7ec68139da6c
91
train
train
Testing/test_Visualization.py
test_set_render_nodes
self.assertFalse
complex_expr
55
from io import BytesIO import unittest from unittest.mock import MagicMock import vtk from Pynite import FEModel3D from Pynite.Visualization import Renderer from IPython.display import Image class TestRenderer(unittest.TestCase): def setUp(self): # Create a model to visualize self.beam_model = FE...
self.renderer.render_nodes)
b9af2102f90edff6a3d42b1c981a7ec68139da6c
91
v2_extractor_at_anchor
JWock82/Pynite
b9af2102f90edff6a3d42b1c981a7ec68139da6c
91
train
train
Testing/test_Visualization.py
test_set_render_loads
self.assertFalse
complex_expr
55
from io import BytesIO import unittest from unittest.mock import MagicMock import vtk from Pynite import FEModel3D from Pynite.Visualization import Renderer from IPython.display import Image class TestRenderer(unittest.TestCase): def setUp(self): # Create a model to visualize self.beam_model = FE...
self.renderer.render_loads)
b9af2102f90edff6a3d42b1c981a7ec68139da6c
91
v2_extractor_at_anchor
JWock82/Pynite
b9af2102f90edff6a3d42b1c981a7ec68139da6c
91
train
train
Testing/test_Visualization.py
test_set_deformed_shape
self.assertTrue
complex_expr
55
from io import BytesIO import unittest from unittest.mock import MagicMock import vtk from Pynite import FEModel3D from Pynite.Visualization import Renderer from IPython.display import Image class TestRenderer(unittest.TestCase): def setUp(self): # Create a model to visualize self.beam_model = FE...
self.renderer.deformed_shape)
b9af2102f90edff6a3d42b1c981a7ec68139da6c
91
v2_extractor_at_anchor
JWock82/Pynite
b9af2102f90edff6a3d42b1c981a7ec68139da6c
91
train
train
Testing/test_beam_rotation.py
test_column_rotation
assert
numeric_literal
62
from Pynite import FEModel3D import pytest as pt from math import isclose def test_column_rotation(): # Initialize a new model model = FEModel3D() # Define materials and sections model.add_material(name="Steel", E=29000, G=11200, nu=0.3, rho=0.0002836) model.add_section(name="W14x90", A=26.5, Iy=...
0.0
b9af2102f90edff6a3d42b1c981a7ec68139da6c
91
v2_extractor_at_anchor
JWock82/Pynite
b9af2102f90edff6a3d42b1c981a7ec68139da6c
91
train
train
Testing/test_beam_rotation.py
test_column_rotation
assert
numeric_literal
56
from Pynite import FEModel3D import pytest as pt from math import isclose def test_column_rotation(): # Initialize a new model model = FEModel3D() # Define materials and sections model.add_material(name="Steel", E=29000, G=11200, nu=0.3, rho=0.0002836) model.add_section(name="W14x90", A=26.5, Iy=...
-2.5
b9af2102f90edff6a3d42b1c981a7ec68139da6c
91
v2_extractor_at_anchor
JWock82/Pynite
b9af2102f90edff6a3d42b1c981a7ec68139da6c
91
train
train
Testing/test_beam_rotation.py
test_beam_rotation
assert
func_call
39
from Pynite import FEModel3D import pytest as pt from math import isclose def test_beam_rotation(): # Create a model beam = FEModel3D() # Add nodes to the model beam.add_node('N1', 0, 0, 0) beam.add_node('N2', 10, 0, 0) # Define supports beam.def_support('N1', True, True, True, True, Fal...
pt.approx(0.0, rel=1e-2)
b9af2102f90edff6a3d42b1c981a7ec68139da6c
91
v2_extractor_at_anchor
JWock82/Pynite
b9af2102f90edff6a3d42b1c981a7ec68139da6c
91
train
train
Testing/test_beam_rotation.py
test_beam_rotation
assert
func_call
41
from Pynite import FEModel3D import pytest as pt from math import isclose def test_beam_rotation(): # Create a model beam = FEModel3D() # Add nodes to the model beam.add_node('N1', 0, 0, 0) beam.add_node('N2', 10, 0, 0) # Define supports beam.def_support('N1', True, True, True, True, Fal...
pt.approx(17.677, rel=1e-2)
b9af2102f90edff6a3d42b1c981a7ec68139da6c
91
v2_extractor_at_anchor
JWock82/Pynite
b9af2102f90edff6a3d42b1c981a7ec68139da6c
91
train
train
Testing/test_beam_rotation.py
test_beam_rotation
assert
func_call
40
from Pynite import FEModel3D import pytest as pt from math import isclose def test_beam_rotation(): # Create a model beam = FEModel3D() # Add nodes to the model beam.add_node('N1', 0, 0, 0) beam.add_node('N2', 10, 0, 0) # Define supports beam.def_support('N1', True, True, True, True, Fal...
pt.approx(-17.677, rel=1e-2)
b9af2102f90edff6a3d42b1c981a7ec68139da6c
91
v2_extractor_at_anchor
JWock82/Pynite
b9af2102f90edff6a3d42b1c981a7ec68139da6c
91
train
train
Testing/test_end_releases.py
test_end_release_Rz
self.assertAlmostEqual
variable
50
import unittest from Pynite import FEModel3D import math import sys from io import StringIO class Test_End_Release(unittest.TestCase): def setUp(self): # Suppress printed output temporarily sys.stdout = StringIO() def tearDown(self): # Reset the print function to normal sys.st...
expected_moment)
b9af2102f90edff6a3d42b1c981a7ec68139da6c
91
v2_extractor_at_anchor
JWock82/Pynite
b9af2102f90edff6a3d42b1c981a7ec68139da6c
91
train
train
Testing/test_loads.py
test_member_self_weight
self.assertAlmostEqual
numeric_literal
33
import unittest from Pynite import FEModel3D, Section import sys from io import StringIO class TestLoads(unittest.TestCase): def setUp(self): # Suppress printed output temporarily sys.stdout = StringIO() def tearDown(self): # Reset the print function to normal sys.stdout = sys...
4)
b9af2102f90edff6a3d42b1c981a7ec68139da6c
91
v2_extractor_at_anchor
JWock82/Pynite
b9af2102f90edff6a3d42b1c981a7ec68139da6c
91
train
train
Testing/test_loads.py
test_axial_distributed_load
self.assertAlmostEqual
numeric_literal
59
import unittest from Pynite import FEModel3D, Section import sys from io import StringIO class TestLoads(unittest.TestCase): def setUp(self): # Suppress printed output temporarily sys.stdout = StringIO() def tearDown(self): # Reset the print function to normal sys.stdout = sys...
2)
b9af2102f90edff6a3d42b1c981a7ec68139da6c
91
v2_extractor_at_anchor
JWock82/Pynite
b9af2102f90edff6a3d42b1c981a7ec68139da6c
91
train
train
Testing/test_loads.py
test_member_self_weight_local_direction
self.assertRaises
variable
32
import unittest from Pynite import FEModel3D, Section import sys from io import StringIO class TestLoads(unittest.TestCase): def setUp(self): # Suppress printed output temporarily sys.stdout = StringIO() def tearDown(self): # Reset the print function to normal sys.stdout = sys...
ValueError)
b9af2102f90edff6a3d42b1c981a7ec68139da6c
91
v2_extractor_at_anchor
JWock82/Pynite
b9af2102f90edff6a3d42b1c981a7ec68139da6c
91
train
train
Testing/test_meshes.py
test_PCA_7_quad
assert
numeric_literal
79
from Pynite import FEModel3D from Pynite.Rendering import Renderer from math import isclose def test_PCA_7_quad(): """ Tests against the example from Section 7 of "Circular Concrete Tanks without Prestressing" by PCA. """ # Create a new finite element model tank_model = FEModel3D() H = 20...
0
b9af2102f90edff6a3d42b1c981a7ec68139da6c
91
v2_extractor_at_anchor
JWock82/Pynite
b9af2102f90edff6a3d42b1c981a7ec68139da6c
91
train
train
Testing/test_meshes.py
test_rect_mesh_in_plane_stiffness
assert
numeric_literal
47
from Pynite import FEModel3D from Pynite.Rendering import Renderer from math import isclose def test_rect_mesh_in_plane_stiffness(): model = FEModel3D() E = 57*(5000)**0.5*12**2 G = 0.4*E nu = 0.15 rho = 0.150 model.add_material('Concrete', E, G, nu, rho) model.add_rectangle_mesh('MSH1',...
1369
b9af2102f90edff6a3d42b1c981a7ec68139da6c
91
v2_extractor_at_anchor
JWock82/Pynite
b9af2102f90edff6a3d42b1c981a7ec68139da6c
91
train
train
Testing/test_meshes.py
test_PCA_7_quad
assert
numeric_literal
74
from Pynite import FEModel3D from Pynite.Rendering import Renderer from math import isclose def test_PCA_7_quad(): """ Tests against the example from Section 7 of "Circular Concrete Tanks without Prestressing" by PCA. """ # Create a new finite element model tank_model = FEModel3D() H = 20...
0.03
b9af2102f90edff6a3d42b1c981a7ec68139da6c
91
v2_extractor_at_anchor
JWock82/Pynite
b9af2102f90edff6a3d42b1c981a7ec68139da6c
91
train
train
Testing/test_meshes.py
test_PCA_7_rect
assert
numeric_literal
70
from Pynite import FEModel3D from Pynite.Rendering import Renderer from math import isclose def test_PCA_7_rect(): """ Tests against the example from Section 7 of "Circular Concrete Tanks without Prestressing" by PCA. """ # Create a new finite element model tank_model = FEModel3D() H = 20 ...
0.08
b9af2102f90edff6a3d42b1c981a7ec68139da6c
91
v2_extractor_at_anchor
JWock82/Pynite
b9af2102f90edff6a3d42b1c981a7ec68139da6c
91
train
train
Testing/test_meshes.py
test_PCA_7_rect
assert
numeric_literal
73
from Pynite import FEModel3D from Pynite.Rendering import Renderer from math import isclose def test_PCA_7_rect(): """ Tests against the example from Section 7 of "Circular Concrete Tanks without Prestressing" by PCA. """ # Create a new finite element model tank_model = FEModel3D() H = 20 ...
0.05
b9af2102f90edff6a3d42b1c981a7ec68139da6c
91
v2_extractor_at_anchor
JWock82/Pynite
b9af2102f90edff6a3d42b1c981a7ec68139da6c
91
train
train
Testing/test_plates&quads.py
test_plate_displacement
assert
numeric_literal
60
from Pynite import FEModel3D import math def test_plate_displacement(): """ # A First Course in the Finite Element Method, 4th Edition # Daryl L. Logan # Example 12.1 # Units for this model are pounds and inches """ plate_model= FEModel3D() plate_model.add_node('N1', 0, 0, 0) plat...
0.01
b9af2102f90edff6a3d42b1c981a7ec68139da6c
91
v2_extractor_at_anchor
JWock82/Pynite
b9af2102f90edff6a3d42b1c981a7ec68139da6c
91
train
train
Testing/test_plates&quads.py
test_hydrostatic_plate
assert
numeric_literal
57
from Pynite import FEModel3D import math def test_hydrostatic_plate(): # Create the model plate_model = FEModel3D() # Define geometry t = 1 # ft mesh_size = 1 # ft a = 10 # ft b = 15 # ft # Define a material E = 57000*math.sqrt(4500)*12**2 # psf G = 0.4*E # psf nu =...
0.15
b9af2102f90edff6a3d42b1c981a7ec68139da6c
91
v2_extractor_at_anchor
JWock82/Pynite
b9af2102f90edff6a3d42b1c981a7ec68139da6c
91
train
train
Testing/test_reactions.py
test_spring_reactions
assert
numeric_literal
14
from Pynite import FEModel3D def test_spring_reactions(): model = FEModel3D() model.add_node('N1', 0, 0, 0) model.add_node_load('N1', 'FY', -5) model.def_support('N1', True, False, True, True, True, True) model.def_support_spring('N1', 'DY', '5', '-') model.analyze() assert model.nodes[...
5
b9af2102f90edff6a3d42b1c981a7ec68139da6c
91
v2_extractor_at_anchor
JWock82/Pynite
b9af2102f90edff6a3d42b1c981a7ec68139da6c
91
train
train
Testing/test_reanalysis.py
test_reanalysis
self.assertNotAlmostEqual
numeric_literal
65
import unittest from Pynite import FEModel3D import math import sys from io import StringIO class Test_2D_Frame(unittest.TestCase): def setUp(self): # Suppress printed output temporarily sys.stdout = StringIO() def tearDown(self): # Reset the print function to normal sys.stdou...
3)
b9af2102f90edff6a3d42b1c981a7ec68139da6c
91
v2_extractor_at_anchor
JWock82/Pynite
b9af2102f90edff6a3d42b1c981a7ec68139da6c
91
train
train
Testing/test_shear_wall.py
test_cracked_rect_shear_wall
assert
numeric_literal
43
from Pynite import FEModel3D from Pynite.Rendering import Renderer from math import isclose def test_cracked_rect_shear_wall(): sw = FEModel3D() # Define a material E = 57000*(4000)**0.5/1000*12**2 nu = 0.17 G = E/(2*(1 + nu)) sw.add_material('Concrete', E, G, nu, 0.150) # Define geometr...
0.02
b9af2102f90edff6a3d42b1c981a7ec68139da6c
91
v2_extractor_at_anchor
JWock82/Pynite
b9af2102f90edff6a3d42b1c981a7ec68139da6c
91
train
train
Testing/test_shear_wall.py
test_quad_shear_wall
assert
numeric_literal
43
from Pynite import FEModel3D from Pynite.Rendering import Renderer from math import isclose def test_quad_shear_wall(): sw = FEModel3D() # Add a material E = 57000*(4000)**0.5/1000*12**2 nu = 0.17 G = E/(2*(1 + nu)) sw.add_material('Concrete', E, G, nu, 0.150) # Define section properties...
0.001
b9af2102f90edff6a3d42b1c981a7ec68139da6c
91
v2_extractor_at_anchor
JWock82/Pynite
b9af2102f90edff6a3d42b1c981a7ec68139da6c
91
train
train
Testing/test_shear_wall.py
test_piers_and_coupling_beams
assert
func_call
53
from Pynite import FEModel3D from Pynite.Rendering import Renderer from math import isclose def test_piers_and_coupling_beams(): # Create a new finite element model model = FEModel3D() # Define a material for our shear wall fm = 2000/1000*144 # ksf Em = 900*fm # ksf Gm = 0.4*Em # ksf n...
round(M3, 3)
b9af2102f90edff6a3d42b1c981a7ec68139da6c
91
v2_extractor_at_anchor
JWock82/Pynite
b9af2102f90edff6a3d42b1c981a7ec68139da6c
91
train
train
Testing/test_shear_wall.py
test_piers_and_coupling_beams
assert
func_call
52
from Pynite import FEModel3D from Pynite.Rendering import Renderer from math import isclose def test_piers_and_coupling_beams(): # Create a new finite element model model = FEModel3D() # Define a material for our shear wall fm = 2000/1000*144 # ksf Em = 900*fm # ksf Gm = 0.4*Em # ksf n...
-round(P3, 3)
b9af2102f90edff6a3d42b1c981a7ec68139da6c
91
v2_extractor_at_anchor
JWock82/Pynite
b9af2102f90edff6a3d42b1c981a7ec68139da6c
91
train
train
Testing/test_sloped_beam.py
test_sloped_beam
self.assertAlmostEqual
numeric_literal
69
import unittest from Pynite import FEModel3D import math import sys from io import StringIO class Test_2D_Frame(unittest.TestCase): def setUp(self): # Suppress printed output temporarily sys.stdout = StringIO() def tearDown(self): # Reset the print function to normal sys.stdou...
2)
b9af2102f90edff6a3d42b1c981a7ec68139da6c
91
v2_extractor_at_anchor
JWock82/Pynite
b9af2102f90edff6a3d42b1c981a7ec68139da6c
91
train
train
Testing/test_spring_support.py
test_beam_on_elastic_foundation
self.assertLess
string_literal
66
import unittest from Pynite import FEModel3D import sys from io import StringIO class Test_Spring_Supports(unittest.TestCase): def setUp(self): # Suppress printed output temporarily sys.stdout = StringIO() def tearDown(self): # Reset the print function to normal sys.stdout = s...
'Failed beam on elastic foundation test.')
b9af2102f90edff6a3d42b1c981a7ec68139da6c
91
v2_extractor_at_anchor
JWock82/Pynite
b9af2102f90edff6a3d42b1c981a7ec68139da6c
91
train
train
Testing/test_springs.py
test_spring_elements
self.assertAlmostEqual
numeric_literal
45
import unittest from Pynite import FEModel3D import sys from io import StringIO class Test_Spring_Elements(unittest.TestCase): def setUp(self): # Suppress printed output temporarily sys.stdout = StringIO() def tearDown(self): # Reset the print function to normal sys.stdout = s...
2)
b9af2102f90edff6a3d42b1c981a7ec68139da6c
91
v2_extractor_at_anchor
JWock82/Pynite
b9af2102f90edff6a3d42b1c981a7ec68139da6c
91
train
train
Testing/test_support_settlement.py
test_support_settlement
self.assertLess
numeric_literal
80
import unittest from Pynite import FEModel3D import math import sys from io import StringIO class Test_Support_Settlement(unittest.TestCase): def setUp(self): # Suppress printed output temporarily sys.stdout = StringIO() def tearDown(self): # Reset the print function to normal ...
0.076)
b9af2102f90edff6a3d42b1c981a7ec68139da6c
91
v2_extractor_at_anchor
JWock82/Pynite
b9af2102f90edff6a3d42b1c981a7ec68139da6c
91
train
train
Testing/test_torsion.py
test_member_torque_load
self.assertAlmostEqual
numeric_literal
40
import unittest from Pynite import FEModel3D import math import sys from io import StringIO class Test_End_Release(unittest.TestCase): def setUp(self): # Suppress printed output temporarily sys.stdout = StringIO() def tearDown(self): # Reset the print function to normal sys.st...
2)
b9af2102f90edff6a3d42b1c981a7ec68139da6c
91
v2_extractor_at_anchor
JWock82/Pynite
b9af2102f90edff6a3d42b1c981a7ec68139da6c
91
train
train
Testing/test_unstable_structure.py
test_unstable_supports
self.assertRaises
variable
56
import unittest from numpy import True_ from Pynite import FEModel3D import sys from io import StringIO class Test_Unstable(unittest.TestCase): def setUp(self): # Suppress printed output temporarily sys.stdout = StringIO() def tearDown(self): # Reset the print function to normal ...
Exception)
b9af2102f90edff6a3d42b1c981a7ec68139da6c
91
v2_extractor_at_anchor
JoshuaC215/agent-service-toolkit
3b6f9626e9fe5d060e4f8bfb5a312c0d495c481f
30
train
train
tests/app/test_streamlit_app.py
test_app_streaming_sequential_sub_agents
assert
numeric_literal
232
from collections.abc import AsyncGenerator from unittest.mock import AsyncMock, Mock import pytest from streamlit.testing.v1 import AppTest from client import AgentClientError from schema import ChatHistory, ChatMessage from schema.models import OpenAIModelName def multi_agent_messages(): """Fixture providing re...
6
3b6f9626e9fe5d060e4f8bfb5a312c0d495c481f
30
v2_extractor_at_anchor
JoshuaC215/agent-service-toolkit
3b6f9626e9fe5d060e4f8bfb5a312c0d495c481f
30
train
train
tests/app/test_streamlit_app.py
test_app_streaming_nested_sub_agents
assert
numeric_literal
233
from collections.abc import AsyncGenerator from unittest.mock import AsyncMock, Mock import pytest from streamlit.testing.v1 import AppTest from client import AgentClientError from schema import ChatHistory, ChatMessage from schema.models import OpenAIModelName def multi_agent_messages(): """Fixture providing re...
4
3b6f9626e9fe5d060e4f8bfb5a312c0d495c481f
30
v2_extractor_at_anchor
JoshuaC215/agent-service-toolkit
3b6f9626e9fe5d060e4f8bfb5a312c0d495c481f
30
train
train
tests/app/test_streamlit_app.py
test_app_streaming
assert
string_literal
49
from collections.abc import AsyncGenerator from unittest.mock import AsyncMock, Mock import pytest from streamlit.testing.v1 import AppTest from client import AgentClientError from schema import ChatHistory, ChatMessage from schema.models import OpenAIModelName @pytest.mark.asyncio async def test_app_streaming(mock_...
"42"
3b6f9626e9fe5d060e4f8bfb5a312c0d495c481f
30
v2_extractor_at_anchor
JoshuaC215/agent-service-toolkit
3b6f9626e9fe5d060e4f8bfb5a312c0d495c481f
30
train
train
tests/app/test_streamlit_app.py
test_app_streaming_single_sub_agent
assert
string_literal
199
from collections.abc import AsyncGenerator from unittest.mock import AsyncMock, Mock import pytest from streamlit.testing.v1 import AppTest from client import AgentClientError from schema import ChatHistory, ChatMessage from schema.models import OpenAIModelName def multi_agent_messages(): """Fixture providing re...
"🛠️"
3b6f9626e9fe5d060e4f8bfb5a312c0d495c481f
30
v2_extractor_at_anchor
JoshuaC215/agent-service-toolkit
3b6f9626e9fe5d060e4f8bfb5a312c0d495c481f
30
train
train
tests/app/test_streamlit_app.py
test_app_simple_non_streaming
assert
string_literal
30
from collections.abc import AsyncGenerator from unittest.mock import AsyncMock, Mock import pytest from streamlit.testing.v1 import AppTest from client import AgentClientError from schema import ChatHistory, ChatMessage from schema.models import OpenAIModelName def test_app_simple_non_streaming(mock_agent_client): ...
"user"
3b6f9626e9fe5d060e4f8bfb5a312c0d495c481f
30
v2_extractor_at_anchor
JoshuaC215/agent-service-toolkit
3b6f9626e9fe5d060e4f8bfb5a312c0d495c481f
30
train
train
tests/app/test_streamlit_app.py
test_app_simple_non_streaming
assert
variable
31
from collections.abc import AsyncGenerator from unittest.mock import AsyncMock, Mock import pytest from streamlit.testing.v1 import AppTest from client import AgentClientError from schema import ChatHistory, ChatMessage from schema.models import OpenAIModelName def test_app_simple_non_streaming(mock_agent_client): ...
PROMPT
3b6f9626e9fe5d060e4f8bfb5a312c0d495c481f
30
v2_extractor_at_anchor
JoshuaC215/agent-service-toolkit
3b6f9626e9fe5d060e4f8bfb5a312c0d495c481f
30
train
train
tests/app/test_streamlit_app.py
test_app_thread_id_history
assert
string_literal
27
from collections.abc import AsyncGenerator from unittest.mock import AsyncMock, Mock import pytest from streamlit.testing.v1 import AppTest from client import AgentClientError from schema import ChatHistory, ChatMessage from schema.models import OpenAIModelName def test_app_thread_id_history(mock_agent_client): ...
"1234"
3b6f9626e9fe5d060e4f8bfb5a312c0d495c481f
30
v2_extractor_at_anchor
JoshuaC215/agent-service-toolkit
3b6f9626e9fe5d060e4f8bfb5a312c0d495c481f
30
train
train
tests/app/test_streamlit_app.py
test_app_simple_non_streaming
assert
variable
33
from collections.abc import AsyncGenerator from unittest.mock import AsyncMock, Mock import pytest from streamlit.testing.v1 import AppTest from client import AgentClientError from schema import ChatHistory, ChatMessage from schema.models import OpenAIModelName def test_app_simple_non_streaming(mock_agent_client): ...
RESPONSE
3b6f9626e9fe5d060e4f8bfb5a312c0d495c481f
30
v2_extractor_at_anchor
JoshuaC215/agent-service-toolkit
3b6f9626e9fe5d060e4f8bfb5a312c0d495c481f
30
train
train
tests/app/test_streamlit_app.py
test_app_settings
assert
string_literal
26
from collections.abc import AsyncGenerator from unittest.mock import AsyncMock, Mock import pytest from streamlit.testing.v1 import AppTest from client import AgentClientError from schema import ChatHistory, ChatMessage from schema.models import OpenAIModelName def test_app_settings(mock_agent_client): """Test t...
"gpt-4o"
3b6f9626e9fe5d060e4f8bfb5a312c0d495c481f
30
v2_extractor_at_anchor
JoshuaC215/agent-service-toolkit
3b6f9626e9fe5d060e4f8bfb5a312c0d495c481f
30
train
train
tests/client/test_client.py
test_get_history
assert
numeric_literal
28
import json import os from unittest.mock import AsyncMock, Mock, patch import pytest from httpx import Request, Response from client import AgentClient, AgentClientError from schema import AgentInfo, ChatHistory, ChatMessage, ServiceMetadata from schema.models import OpenAIModelName def test_get_history(agent_client...
2
3b6f9626e9fe5d060e4f8bfb5a312c0d495c481f
30
v2_extractor_at_anchor
JoshuaC215/agent-service-toolkit
3b6f9626e9fe5d060e4f8bfb5a312c0d495c481f
30
train
train
tests/client/test_client.py
test_headers
assert
collection
17
import json import os from unittest.mock import AsyncMock, Mock, patch import pytest from httpx import Request, Response from client import AgentClient, AgentClientError from schema import AgentInfo, ChatHistory, ChatMessage, ServiceMetadata from schema.models import OpenAIModelName def test_headers(mock_env): "...
{}
3b6f9626e9fe5d060e4f8bfb5a312c0d495c481f
30
v2_extractor_at_anchor
JoshuaC215/agent-service-toolkit
3b6f9626e9fe5d060e4f8bfb5a312c0d495c481f
30
train
train
tests/client/test_client.py
test_acreate_feedback
assert
variable
28
import json import os from unittest.mock import AsyncMock, Mock, patch import pytest from httpx import Request, Response from client import AgentClient, AgentClientError from schema import AgentInfo, ChatHistory, ChatMessage, ServiceMetadata from schema.models import OpenAIModelName @pytest.mark.asyncio async def te...
KEY
3b6f9626e9fe5d060e4f8bfb5a312c0d495c481f
30
v2_extractor_at_anchor
JoshuaC215/agent-service-toolkit
3b6f9626e9fe5d060e4f8bfb5a312c0d495c481f
30
train
train
tests/client/test_client.py
test_init
assert
none_literal
18
import json import os from unittest.mock import AsyncMock, Mock, patch import pytest from httpx import Request, Response from client import AgentClient, AgentClientError from schema import AgentInfo, ChatHistory, ChatMessage, ServiceMetadata from schema.models import OpenAIModelName def test_init(mock_env): """T...
None
3b6f9626e9fe5d060e4f8bfb5a312c0d495c481f
30
v2_extractor_at_anchor
JoshuaC215/agent-service-toolkit
3b6f9626e9fe5d060e4f8bfb5a312c0d495c481f
30
train
train
tests/client/test_client.py
test_init
assert
numeric_literal
27
import json import os from unittest.mock import AsyncMock, Mock, patch import pytest from httpx import Request, Response from client import AgentClient, AgentClientError from schema import AgentInfo, ChatHistory, ChatMessage, ServiceMetadata from schema.models import OpenAIModelName def test_init(mock_env): """T...
30.0
3b6f9626e9fe5d060e4f8bfb5a312c0d495c481f
30
v2_extractor_at_anchor
JoshuaC215/agent-service-toolkit
3b6f9626e9fe5d060e4f8bfb5a312c0d495c481f
30
train
train
tests/client/test_client.py
test_invoke
assert
string_literal
28
import json import os from unittest.mock import AsyncMock, Mock, patch import pytest from httpx import Request, Response from client import AgentClient, AgentClientError from schema import AgentInfo, ChatHistory, ChatMessage, ServiceMetadata from schema.models import OpenAIModelName def test_invoke(agent_client): ...
"ai"
3b6f9626e9fe5d060e4f8bfb5a312c0d495c481f
30
v2_extractor_at_anchor
JoshuaC215/agent-service-toolkit
3b6f9626e9fe5d060e4f8bfb5a312c0d495c481f
30
train
train
tests/client/test_client.py
test_stream
assert
variable
43
import json import os from unittest.mock import AsyncMock, Mock, patch import pytest from httpx import Request, Response from client import AgentClient, AgentClientError from schema import AgentInfo, ChatHistory, ChatMessage, ServiceMetadata from schema.models import OpenAIModelName def test_stream(agent_client): ...
token
3b6f9626e9fe5d060e4f8bfb5a312c0d495c481f
30
v2_extractor_at_anchor
JoshuaC215/agent-service-toolkit
3b6f9626e9fe5d060e4f8bfb5a312c0d495c481f
30
train
train
tests/client/test_client.py
test_acreate_feedback
assert
variable
29
import json import os from unittest.mock import AsyncMock, Mock, patch import pytest from httpx import Request, Response from client import AgentClient, AgentClientError from schema import AgentInfo, ChatHistory, ChatMessage, ServiceMetadata from schema.models import OpenAIModelName @pytest.mark.asyncio async def te...
SCORE
3b6f9626e9fe5d060e4f8bfb5a312c0d495c481f
30
v2_extractor_at_anchor
JoshuaC215/agent-service-toolkit
3b6f9626e9fe5d060e4f8bfb5a312c0d495c481f
30
train
train
tests/client/test_client.py
test_invoke
assert
variable
29
import json import os from unittest.mock import AsyncMock, Mock, patch import pytest from httpx import Request, Response from client import AgentClient, AgentClientError from schema import AgentInfo, ChatHistory, ChatMessage, ServiceMetadata from schema.models import OpenAIModelName def test_invoke(agent_client): ...
ANSWER
3b6f9626e9fe5d060e4f8bfb5a312c0d495c481f
30
v2_extractor_at_anchor
JoshuaC215/agent-service-toolkit
3b6f9626e9fe5d060e4f8bfb5a312c0d495c481f
30
train
train
tests/client/test_client.py
test_acreate_feedback
assert
variable
27
import json import os from unittest.mock import AsyncMock, Mock, patch import pytest from httpx import Request, Response from client import AgentClient, AgentClientError from schema import AgentInfo, ChatHistory, ChatMessage, ServiceMetadata from schema.models import OpenAIModelName @pytest.mark.asyncio async def te...
RUN_ID
3b6f9626e9fe5d060e4f8bfb5a312c0d495c481f
30
v2_extractor_at_anchor
JoshuaC215/agent-service-toolkit
3b6f9626e9fe5d060e4f8bfb5a312c0d495c481f
30
train
train
tests/client/test_client.py
test_acreate_feedback
assert
variable
30
import json import os from unittest.mock import AsyncMock, Mock, patch import pytest from httpx import Request, Response from client import AgentClient, AgentClientError from schema import AgentInfo, ChatHistory, ChatMessage, ServiceMetadata from schema.models import OpenAIModelName @pytest.mark.asyncio async def te...
KWARGS
3b6f9626e9fe5d060e4f8bfb5a312c0d495c481f
30
v2_extractor_at_anchor
JoshuaC215/agent-service-toolkit
3b6f9626e9fe5d060e4f8bfb5a312c0d495c481f
30
train
train
tests/core/test_llm.py
test_get_model_openai
assert
numeric_literal
26
import os from unittest.mock import patch import pytest from langchain_anthropic import ChatAnthropic from langchain_community.chat_models import FakeListChatModel from langchain_groq import ChatGroq from langchain_ollama import ChatOllama from langchain_openai import ChatOpenAI from core.llm import get_model from sc...
0.5
3b6f9626e9fe5d060e4f8bfb5a312c0d495c481f
30
v2_extractor_at_anchor
JoshuaC215/agent-service-toolkit
3b6f9626e9fe5d060e4f8bfb5a312c0d495c481f
30
train
train
tests/core/test_llm.py
test_get_model_openai
assert
bool_literal
27
import os from unittest.mock import patch import pytest from langchain_anthropic import ChatAnthropic from langchain_community.chat_models import FakeListChatModel from langchain_groq import ChatGroq from langchain_ollama import ChatOllama from langchain_openai import ChatOpenAI from core.llm import get_model from sc...
True
3b6f9626e9fe5d060e4f8bfb5a312c0d495c481f
30
v2_extractor_at_anchor
JoshuaC215/agent-service-toolkit
3b6f9626e9fe5d060e4f8bfb5a312c0d495c481f
30
train
train
tests/core/test_llm.py
test_get_model_groq_guard
assert
numeric_literal
26
import os from unittest.mock import patch import pytest from langchain_anthropic import ChatAnthropic from langchain_community.chat_models import FakeListChatModel from langchain_groq import ChatGroq from langchain_ollama import ChatOllama from langchain_openai import ChatOpenAI from core.llm import get_model from sc...
0.01
3b6f9626e9fe5d060e4f8bfb5a312c0d495c481f
30
v2_extractor_at_anchor
JoshuaC215/agent-service-toolkit
3b6f9626e9fe5d060e4f8bfb5a312c0d495c481f
30
train
train
tests/core/test_llm.py
test_get_model_ollama
assert
string_literal
25
import os from unittest.mock import patch import pytest from langchain_anthropic import ChatAnthropic from langchain_community.chat_models import FakeListChatModel from langchain_groq import ChatGroq from langchain_ollama import ChatOllama from langchain_openai import ChatOpenAI from core.llm import get_model from sc...
"llama3.3"
3b6f9626e9fe5d060e4f8bfb5a312c0d495c481f
30
v2_extractor_at_anchor
JoshuaC215/agent-service-toolkit
3b6f9626e9fe5d060e4f8bfb5a312c0d495c481f
30
train
train
tests/core/test_llm.py
test_get_model_openai
assert
string_literal
25
import os from unittest.mock import patch import pytest from langchain_anthropic import ChatAnthropic from langchain_community.chat_models import FakeListChatModel from langchain_groq import ChatGroq from langchain_ollama import ChatOllama from langchain_openai import ChatOpenAI from core.llm import get_model from sc...
"gpt-4o-mini"
3b6f9626e9fe5d060e4f8bfb5a312c0d495c481f
30
v2_extractor_at_anchor
JoshuaC215/agent-service-toolkit
3b6f9626e9fe5d060e4f8bfb5a312c0d495c481f
30
train
train
tests/core/test_llm.py
test_get_model_groq
assert
string_literal
25
import os from unittest.mock import patch import pytest from langchain_anthropic import ChatAnthropic from langchain_community.chat_models import FakeListChatModel from langchain_groq import ChatGroq from langchain_ollama import ChatOllama from langchain_openai import ChatOpenAI from core.llm import get_model from sc...
"llama-3.1-8b"
3b6f9626e9fe5d060e4f8bfb5a312c0d495c481f
30
v2_extractor_at_anchor
JoshuaC215/agent-service-toolkit
3b6f9626e9fe5d060e4f8bfb5a312c0d495c481f
30
train
train
tests/core/test_llm.py
test_get_model_anthropic
assert
string_literal
25
import os from unittest.mock import patch import pytest from langchain_anthropic import ChatAnthropic from langchain_community.chat_models import FakeListChatModel from langchain_groq import ChatGroq from langchain_ollama import ChatOllama from langchain_openai import ChatOpenAI from core.llm import get_model from sc...
"claude-3-haiku"
3b6f9626e9fe5d060e4f8bfb5a312c0d495c481f
30
v2_extractor_at_anchor
JoshuaC215/agent-service-toolkit
3b6f9626e9fe5d060e4f8bfb5a312c0d495c481f
30
train
train
tests/core/test_llm.py
test_get_model_groq_guard
assert
string_literal
25
import os from unittest.mock import patch import pytest from langchain_anthropic import ChatAnthropic from langchain_community.chat_models import FakeListChatModel from langchain_groq import ChatGroq from langchain_ollama import ChatOllama from langchain_openai import ChatOpenAI from core.llm import get_model from sc...
"meta-llama/llama-guard-4-12b"
3b6f9626e9fe5d060e4f8bfb5a312c0d495c481f
30
v2_extractor_at_anchor
JoshuaC215/agent-service-toolkit
3b6f9626e9fe5d060e4f8bfb5a312c0d495c481f
30
train
train
tests/core/test_llm.py
test_get_model_invalid
pytest.raises
complex_expr
22
import os from unittest.mock import patch import pytest from langchain_anthropic import ChatAnthropic from langchain_community.chat_models import FakeListChatModel from langchain_groq import ChatGroq from langchain_ollama import ChatOllama from langchain_openai import ChatOpenAI from core.llm import get_model from sc...
ValueError, match="Unsupported model:")
3b6f9626e9fe5d060e4f8bfb5a312c0d495c481f
30
v2_extractor_at_anchor
JoshuaC215/agent-service-toolkit
3b6f9626e9fe5d060e4f8bfb5a312c0d495c481f
30
train
train
tests/core/test_llm.py
test_get_model_fake
assert
collection
24
import os from unittest.mock import patch import pytest from langchain_anthropic import ChatAnthropic from langchain_community.chat_models import FakeListChatModel from langchain_groq import ChatGroq from langchain_ollama import ChatOllama from langchain_openai import ChatOpenAI from core.llm import get_model from sc...
["This is a test response from the fake model."]
3b6f9626e9fe5d060e4f8bfb5a312c0d495c481f
30
v2_extractor_at_anchor
JoshuaC215/agent-service-toolkit
3b6f9626e9fe5d060e4f8bfb5a312c0d495c481f
30
train
train
tests/core/test_settings.py
test_settings_default_values
assert
numeric_literal
20
import json import os from unittest.mock import patch import pytest from pydantic import SecretStr, ValidationError from core.settings import Settings, check_str_is_http from schema.models import ( AnthropicModelName, AzureOpenAIModelName, OpenAIModelName, VertexAIModelName, ) def test_settings_defau...
8080
3b6f9626e9fe5d060e4f8bfb5a312c0d495c481f
30
v2_extractor_at_anchor
JoshuaC215/agent-service-toolkit
3b6f9626e9fe5d060e4f8bfb5a312c0d495c481f
30
train
train
tests/core/test_settings.py
test_settings_is_dev
assert
bool_literal
19
import json import os from unittest.mock import patch import pytest from pydantic import SecretStr, ValidationError from core.settings import Settings, check_str_is_http from schema.models import ( AnthropicModelName, AzureOpenAIModelName, OpenAIModelName, VertexAIModelName, ) def test_settings_is_de...
True
3b6f9626e9fe5d060e4f8bfb5a312c0d495c481f
30
v2_extractor_at_anchor
JoshuaC215/agent-service-toolkit
3b6f9626e9fe5d060e4f8bfb5a312c0d495c481f
30
train
train
tests/core/test_settings.py
test_settings_default_values
assert
bool_literal
21
import json import os from unittest.mock import patch import pytest from pydantic import SecretStr, ValidationError from core.settings import Settings, check_str_is_http from schema.models import ( AnthropicModelName, AzureOpenAIModelName, OpenAIModelName, VertexAIModelName, ) def test_settings_defau...
False
3b6f9626e9fe5d060e4f8bfb5a312c0d495c481f
30
v2_extractor_at_anchor
JoshuaC215/agent-service-toolkit
3b6f9626e9fe5d060e4f8bfb5a312c0d495c481f
30
train
train
tests/core/test_settings.py
test_settings_default_values
assert
string_literal
19
import json import os from unittest.mock import patch import pytest from pydantic import SecretStr, ValidationError from core.settings import Settings, check_str_is_http from schema.models import ( AnthropicModelName, AzureOpenAIModelName, OpenAIModelName, VertexAIModelName, ) def test_settings_defau...
"0.0.0.0"
3b6f9626e9fe5d060e4f8bfb5a312c0d495c481f
30
v2_extractor_at_anchor
JoshuaC215/agent-service-toolkit
3b6f9626e9fe5d060e4f8bfb5a312c0d495c481f
30
train
train
tests/core/test_settings.py
test_settings_with_azure_openai_key
assert
string_literal
28
import json import os from unittest.mock import patch import pytest from pydantic import SecretStr, ValidationError from core.settings import Settings, check_str_is_http from schema.models import ( AnthropicModelName, AzureOpenAIModelName, OpenAIModelName, VertexAIModelName, ) def test_settings_with_...
"test_key"
3b6f9626e9fe5d060e4f8bfb5a312c0d495c481f
30
v2_extractor_at_anchor
JoshuaC215/agent-service-toolkit
3b6f9626e9fe5d060e4f8bfb5a312c0d495c481f
30
train
train
tests/core/test_settings.py
test_settings_azure_openai
assert
string_literal
29
import json import os from unittest.mock import patch import pytest from pydantic import SecretStr, ValidationError from core.settings import Settings, check_str_is_http from schema.models import ( AnthropicModelName, AzureOpenAIModelName, OpenAIModelName, VertexAIModelName, ) def test_settings_azure...
"test-key"
3b6f9626e9fe5d060e4f8bfb5a312c0d495c481f
30
v2_extractor_at_anchor
JoshuaC215/agent-service-toolkit
3b6f9626e9fe5d060e4f8bfb5a312c0d495c481f
30
train
train
tests/core/test_settings.py
test_settings_azure_openai
assert
variable
31
import json import os from unittest.mock import patch import pytest from pydantic import SecretStr, ValidationError from core.settings import Settings, check_str_is_http from schema.models import ( AnthropicModelName, AzureOpenAIModelName, OpenAIModelName, VertexAIModelName, ) def test_settings_azure...
deployment_map
3b6f9626e9fe5d060e4f8bfb5a312c0d495c481f
30
v2_extractor_at_anchor
JoshuaC215/agent-service-toolkit
3b6f9626e9fe5d060e4f8bfb5a312c0d495c481f
30
train
train
tests/core/test_settings.py
test_settings_with_multiple_api_keys
assert
variable
34
import json import os from unittest.mock import patch import pytest from pydantic import SecretStr, ValidationError from core.settings import Settings, check_str_is_http from schema.models import ( AnthropicModelName, AzureOpenAIModelName, OpenAIModelName, VertexAIModelName, ) def test_settings_with_...
expected_models
3b6f9626e9fe5d060e4f8bfb5a312c0d495c481f
30
v2_extractor_at_anchor
JoshuaC215/agent-service-toolkit
3b6f9626e9fe5d060e4f8bfb5a312c0d495c481f
30
train
train
tests/core/test_settings.py
test_check_str_is_http
pytest.raises
variable
23
import json import os from unittest.mock import patch import pytest from pydantic import SecretStr, ValidationError from core.settings import Settings, check_str_is_http from schema.models import ( AnthropicModelName, AzureOpenAIModelName, OpenAIModelName, VertexAIModelName, ) def test_check_str_is_h...
ValidationError)
3b6f9626e9fe5d060e4f8bfb5a312c0d495c481f
30
v2_extractor_at_anchor
JoshuaC215/agent-service-toolkit
3b6f9626e9fe5d060e4f8bfb5a312c0d495c481f
30
train
train
tests/core/test_settings.py
test_settings_with_openai_key
assert
func_call
22
import json import os from unittest.mock import patch import pytest from pydantic import SecretStr, ValidationError from core.settings import Settings, check_str_is_http from schema.models import ( AnthropicModelName, AzureOpenAIModelName, OpenAIModelName, VertexAIModelName, ) def test_settings_with_...
set(OpenAIModelName)
3b6f9626e9fe5d060e4f8bfb5a312c0d495c481f
30
v2_extractor_at_anchor
JoshuaC215/agent-service-toolkit
3b6f9626e9fe5d060e4f8bfb5a312c0d495c481f
30
train
train
tests/core/test_settings.py
test_check_str_is_http
assert
string_literal
19
import json import os from unittest.mock import patch import pytest from pydantic import SecretStr, ValidationError from core.settings import Settings, check_str_is_http from schema.models import ( AnthropicModelName, AzureOpenAIModelName, OpenAIModelName, VertexAIModelName, ) def test_check_str_is_h...
"http://example.com/"
3b6f9626e9fe5d060e4f8bfb5a312c0d495c481f
30
v2_extractor_at_anchor
JoshuaC215/agent-service-toolkit
3b6f9626e9fe5d060e4f8bfb5a312c0d495c481f
30
train
train
tests/core/test_settings.py
test_settings_base_url
assert
string_literal
19
import json import os from unittest.mock import patch import pytest from pydantic import SecretStr, ValidationError from core.settings import Settings, check_str_is_http from schema.models import ( AnthropicModelName, AzureOpenAIModelName, OpenAIModelName, VertexAIModelName, ) def test_settings_base_...
"http://0.0.0.0:8000"
3b6f9626e9fe5d060e4f8bfb5a312c0d495c481f
30
v2_extractor_at_anchor
JoshuaC215/agent-service-toolkit
3b6f9626e9fe5d060e4f8bfb5a312c0d495c481f
30
train
train
tests/core/test_settings.py
test_settings_with_openai_key
assert
func_call
20
import json import os from unittest.mock import patch import pytest from pydantic import SecretStr, ValidationError from core.settings import Settings, check_str_is_http from schema.models import ( AnthropicModelName, AzureOpenAIModelName, OpenAIModelName, VertexAIModelName, ) def test_settings_with_...
SecretStr("test_key")
3b6f9626e9fe5d060e4f8bfb5a312c0d495c481f
30
v2_extractor_at_anchor
JoshuaC215/agent-service-toolkit
3b6f9626e9fe5d060e4f8bfb5a312c0d495c481f
30
train
train
tests/core/test_settings.py
test_settings_with_vertexai_credentials_file
assert
func_call
22
import json import os from unittest.mock import patch import pytest from pydantic import SecretStr, ValidationError from core.settings import Settings, check_str_is_http from schema.models import ( AnthropicModelName, AzureOpenAIModelName, OpenAIModelName, VertexAIModelName, ) def test_settings_with_...
set(VertexAIModelName)
3b6f9626e9fe5d060e4f8bfb5a312c0d495c481f
30
v2_extractor_at_anchor
JoshuaC215/agent-service-toolkit
3b6f9626e9fe5d060e4f8bfb5a312c0d495c481f
30
train
train
tests/integration/test_docker_e2e.py
test_service_with_fake_model
assert
string_literal
15
import pytest from streamlit.testing.v1 import AppTest from client import AgentClient @pytest.mark.docker def test_service_with_fake_model(): """Test the service using the fake model. This test requires the service container to be running with USE_FAKE_MODEL=true """ client = AgentClient("http://0.0....
"ai"
3b6f9626e9fe5d060e4f8bfb5a312c0d495c481f
30
v2_extractor_at_anchor
JoshuaC215/agent-service-toolkit
3b6f9626e9fe5d060e4f8bfb5a312c0d495c481f
30
train
train
tests/integration/test_docker_e2e.py
test_service_with_app
assert
string_literal
21
import pytest from streamlit.testing.v1 import AppTest from client import AgentClient @pytest.mark.docker def test_service_with_app(): """Test the service using the app. This test requires the service container to be running with USE_FAKE_MODEL=true """ at = AppTest.from_file("../../src/streamlit_app...
"user"
3b6f9626e9fe5d060e4f8bfb5a312c0d495c481f
30
v2_extractor_at_anchor
JoshuaC215/agent-service-toolkit
3b6f9626e9fe5d060e4f8bfb5a312c0d495c481f
30
train
train
tests/integration/test_docker_e2e.py
test_service_with_app
assert
string_literal
14
import pytest from streamlit.testing.v1 import AppTest from client import AgentClient @pytest.mark.docker def test_service_with_app(): """Test the service using the app. This test requires the service container to be running with USE_FAKE_MODEL=true """ at = AppTest.from_file("../../src/streamlit_app...
"assistant"
3b6f9626e9fe5d060e4f8bfb5a312c0d495c481f
30
v2_extractor_at_anchor
JoshuaC215/agent-service-toolkit
3b6f9626e9fe5d060e4f8bfb5a312c0d495c481f
30
train
train
tests/integration/test_docker_e2e.py
test_service_with_app
assert
string_literal
22
import pytest from streamlit.testing.v1 import AppTest from client import AgentClient @pytest.mark.docker def test_service_with_app(): """Test the service using the app. This test requires the service container to be running with USE_FAKE_MODEL=true """ at = AppTest.from_file("../../src/streamlit_app...
"What is the weather in Tokyo?"
3b6f9626e9fe5d060e4f8bfb5a312c0d495c481f
30
v2_extractor_at_anchor
JoshuaC215/agent-service-toolkit
3b6f9626e9fe5d060e4f8bfb5a312c0d495c481f
30
train
train
tests/integration/test_docker_e2e.py
test_service_with_fake_model
assert
string_literal
16
import pytest from streamlit.testing.v1 import AppTest from client import AgentClient @pytest.mark.docker def test_service_with_fake_model(): """Test the service using the fake model. This test requires the service container to be running with USE_FAKE_MODEL=true """ client = AgentClient("http://0.0....
"This is a test response from the fake model."
3b6f9626e9fe5d060e4f8bfb5a312c0d495c481f
30
v2_extractor_at_anchor
JoshuaC215/agent-service-toolkit
3b6f9626e9fe5d060e4f8bfb5a312c0d495c481f
30
train
train
tests/service/test_auth.py
test_no_auth_secret
assert
numeric_literal
12
from pydantic import SecretStr def test_no_auth_secret(mock_settings, mock_agent, test_client): """Test that when AUTH_SECRET is not set, all requests are allowed""" mock_settings.AUTH_SECRET = None response = test_client.post( "/invoke", json={"message": "test"}, headers={"Authoriz...
200
3b6f9626e9fe5d060e4f8bfb5a312c0d495c481f
30
v2_extractor_at_anchor
JoshuaC215/agent-service-toolkit
3b6f9626e9fe5d060e4f8bfb5a312c0d495c481f
30
train
train
tests/service/test_auth.py
test_auth_secret_incorrect
assert
numeric_literal
12
from pydantic import SecretStr def test_auth_secret_incorrect(mock_settings, mock_agent, test_client): """Test that when AUTH_SECRET is set, requests with wrong token are rejected""" mock_settings.AUTH_SECRET = SecretStr("test-secret") response = test_client.post( "/invoke", json={"message"...
401
3b6f9626e9fe5d060e4f8bfb5a312c0d495c481f
30
v2_extractor_at_anchor
JoshuaC215/agent-service-toolkit
3b6f9626e9fe5d060e4f8bfb5a312c0d495c481f
30
train
train
tests/service/test_service.py
test_info
assert
numeric_literal
28
import json from unittest.mock import AsyncMock, patch import langsmith import pytest from langchain_core.messages import AIMessage, AIMessageChunk, HumanMessage from langgraph.pregel.types import StateSnapshot from langgraph.types import Interrupt from agents.agents import Agent from schema import ChatHistory, ChatM...
1
3b6f9626e9fe5d060e4f8bfb5a312c0d495c481f
30
v2_extractor_at_anchor
JoshuaC215/agent-service-toolkit
3b6f9626e9fe5d060e4f8bfb5a312c0d495c481f
30
train
train
tests/service/test_service.py
test_stream_no_tokens
assert
numeric_literal
59
import json from unittest.mock import AsyncMock, patch import langsmith import pytest from langchain_core.messages import AIMessage, AIMessageChunk, HumanMessage from langgraph.pregel.types import StateSnapshot from langgraph.types import Interrupt from agents.agents import Agent from schema import ChatHistory, ChatM...
0
3b6f9626e9fe5d060e4f8bfb5a312c0d495c481f
30
v2_extractor_at_anchor
JoshuaC215/agent-service-toolkit
3b6f9626e9fe5d060e4f8bfb5a312c0d495c481f
30
train
train
tests/service/test_service.py
test_invoke
assert
numeric_literal
21
import json from unittest.mock import AsyncMock, patch import langsmith import pytest from langchain_core.messages import AIMessage, AIMessageChunk, HumanMessage from langgraph.pregel.types import StateSnapshot from langgraph.types import Interrupt from agents.agents import Agent from schema import ChatHistory, ChatM...
200
3b6f9626e9fe5d060e4f8bfb5a312c0d495c481f
30
v2_extractor_at_anchor
JoshuaC215/agent-service-toolkit
3b6f9626e9fe5d060e4f8bfb5a312c0d495c481f
30
train
train
tests/service/test_service.py
test_invoke_model_param
assert
numeric_literal
38
import json from unittest.mock import AsyncMock, patch import langsmith import pytest from langchain_core.messages import AIMessage, AIMessageChunk, HumanMessage from langgraph.pregel.types import StateSnapshot from langgraph.types import Interrupt from agents.agents import Agent from schema import ChatHistory, ChatM...
422
3b6f9626e9fe5d060e4f8bfb5a312c0d495c481f
30
v2_extractor_at_anchor
JoshuaC215/agent-service-toolkit
3b6f9626e9fe5d060e4f8bfb5a312c0d495c481f
30
train
train
tests/service/test_service.py
test_invoke_custom_agent_config
assert
numeric_literal
31
import json from unittest.mock import AsyncMock, patch import langsmith import pytest from langchain_core.messages import AIMessage, AIMessageChunk, HumanMessage from langgraph.pregel.types import StateSnapshot from langgraph.types import Interrupt from agents.agents import Agent from schema import ChatHistory, ChatM...
0.1
3b6f9626e9fe5d060e4f8bfb5a312c0d495c481f
30
v2_extractor_at_anchor
JoshuaC215/agent-service-toolkit
3b6f9626e9fe5d060e4f8bfb5a312c0d495c481f
30
train
train
tests/service/test_service.py
test_invoke
assert
string_literal
28
import json from unittest.mock import AsyncMock, patch import langsmith import pytest from langchain_core.messages import AIMessage, AIMessageChunk, HumanMessage from langgraph.pregel.types import StateSnapshot from langgraph.types import Interrupt from agents.agents import Agent from schema import ChatHistory, ChatM...
"ai"
3b6f9626e9fe5d060e4f8bfb5a312c0d495c481f
30
v2_extractor_at_anchor
JoshuaC215/agent-service-toolkit
3b6f9626e9fe5d060e4f8bfb5a312c0d495c481f
30
train
train
tests/service/test_service_e2e.py
test_messages_conversion
assert
numeric_literal
44
from unittest.mock import patch import pytest from langchain_core.messages import AIMessage, ToolCall, ToolMessage from langgraph.checkpoint.memory import MemorySaver from langgraph.graph import END, MessagesState, StateGraph from langgraph.types import StreamWriter from agents.agents import Agent from agents.utils i...
5
3b6f9626e9fe5d060e4f8bfb5a312c0d495c481f
30
v2_extractor_at_anchor
JoshuaC215/agent-service-toolkit
3b6f9626e9fe5d060e4f8bfb5a312c0d495c481f
30
train
train
tests/service/test_service_e2e.py
test_messages_conversion
assert
numeric_literal
52
from unittest.mock import patch import pytest from langchain_core.messages import AIMessage, ToolCall, ToolMessage from langgraph.checkpoint.memory import MemorySaver from langgraph.graph import END, MessagesState, StateGraph from langgraph.types import StreamWriter from agents.agents import Agent from agents.utils i...
1
3b6f9626e9fe5d060e4f8bfb5a312c0d495c481f
30
v2_extractor_at_anchor
JoshuaC215/agent-service-toolkit
3b6f9626e9fe5d060e4f8bfb5a312c0d495c481f
30
train
train
tests/service/test_service_e2e.py
test_messages_conversion
assert
string_literal
51
from unittest.mock import patch import pytest from langchain_core.messages import AIMessage, ToolCall, ToolMessage from langgraph.checkpoint.memory import MemorySaver from langgraph.graph import END, MessagesState, StateGraph from langgraph.types import StreamWriter from agents.agents import Agent from agents.utils i...
"ai"
3b6f9626e9fe5d060e4f8bfb5a312c0d495c481f
30
v2_extractor_at_anchor
JoshuaC215/agent-service-toolkit
3b6f9626e9fe5d060e4f8bfb5a312c0d495c481f
30
train
train
tests/service/test_service_e2e.py
test_messages_conversion
assert
string_literal
58
from unittest.mock import patch import pytest from langchain_core.messages import AIMessage, ToolCall, ToolMessage from langgraph.checkpoint.memory import MemorySaver from langgraph.graph import END, MessagesState, StateGraph from langgraph.types import StreamWriter from agents.agents import Agent from agents.utils i...
"42"
3b6f9626e9fe5d060e4f8bfb5a312c0d495c481f
30
v2_extractor_at_anchor
JoshuaC215/agent-service-toolkit
3b6f9626e9fe5d060e4f8bfb5a312c0d495c481f
30
train
train
tests/service/test_service_e2e.py
test_agent_stream
assert
variable
68
from unittest.mock import patch import pytest from langchain_core.messages import AIMessage, ToolCall, ToolMessage from langgraph.checkpoint.memory import MemorySaver from langgraph.graph import END, MessagesState, StateGraph from langgraph.types import StreamWriter from agents.agents import Agent from agents.utils i...
actual
3b6f9626e9fe5d060e4f8bfb5a312c0d495c481f
30
v2_extractor_at_anchor
JoshuaC215/agent-service-toolkit
3b6f9626e9fe5d060e4f8bfb5a312c0d495c481f
30
train
train
tests/service/test_service_message_generator.py
test_three_layer_supervisor_hierarchy_agent_with_fake_model
assert
string_literal
57
import json from unittest.mock import patch import pytest from langchain_core.language_models import FakeMessagesListChatModel from langchain_core.messages import AIMessage, BaseMessage, ToolCall from langgraph.checkpoint.memory import MemorySaver from schema import ChatMessage, StreamInput @pytest.mark.asyncio asyn...
"add"
3b6f9626e9fe5d060e4f8bfb5a312c0d495c481f
30
v2_extractor_at_anchor
JoshuaC215/agent-service-toolkit
3b6f9626e9fe5d060e4f8bfb5a312c0d495c481f
30
train
train
tests/service/test_service_message_generator.py
test_three_layer_supervisor_hierarchy_agent_with_fake_model
assert
string_literal
58
import json from unittest.mock import patch import pytest from langchain_core.language_models import FakeMessagesListChatModel from langchain_core.messages import AIMessage, BaseMessage, ToolCall from langgraph.checkpoint.memory import MemorySaver from schema import ChatMessage, StreamInput @pytest.mark.asyncio asyn...
"5.0"
3b6f9626e9fe5d060e4f8bfb5a312c0d495c481f
30
v2_extractor_at_anchor
JoshuaC215/agent-service-toolkit
3b6f9626e9fe5d060e4f8bfb5a312c0d495c481f
30
train
train
tests/service/test_service_message_generator.py
test_three_layer_supervisor_hierarchy_agent_with_fake_model
assert
string_literal
59
import json from unittest.mock import patch import pytest from langchain_core.language_models import FakeMessagesListChatModel from langchain_core.messages import AIMessage, BaseMessage, ToolCall from langgraph.checkpoint.memory import MemorySaver from schema import ChatMessage, StreamInput @pytest.mark.asyncio asyn...
"2+3 is 5"
3b6f9626e9fe5d060e4f8bfb5a312c0d495c481f
30
v2_extractor_at_anchor
JoshuaC215/agent-service-toolkit
3b6f9626e9fe5d060e4f8bfb5a312c0d495c481f
30
train
train
tests/service/test_service_message_generator.py
test_three_layer_supervisor_hierarchy_agent_with_fake_model
assert
string_literal
65
import json from unittest.mock import patch import pytest from langchain_core.language_models import FakeMessagesListChatModel from langchain_core.messages import AIMessage, BaseMessage, ToolCall from langgraph.checkpoint.memory import MemorySaver from schema import ChatMessage, StreamInput @pytest.mark.asyncio asyn...
"The result is 5."
3b6f9626e9fe5d060e4f8bfb5a312c0d495c481f
30
v2_extractor_at_anchor
JoshuaC215/agent-service-toolkit
3b6f9626e9fe5d060e4f8bfb5a312c0d495c481f
30
train
train
tests/service/test_service_message_generator.py
test_three_layer_supervisor_hierarchy_agent_with_fake_model
assert
string_literal
63
import json from unittest.mock import patch import pytest from langchain_core.language_models import FakeMessagesListChatModel from langchain_core.messages import AIMessage, BaseMessage, ToolCall from langgraph.checkpoint.memory import MemorySaver from schema import ChatMessage, StreamInput @pytest.mark.asyncio asyn...
"transfer_back_to_supervisor"
3b6f9626e9fe5d060e4f8bfb5a312c0d495c481f
30
v2_extractor_at_anchor