MCPcopy Index your code
hub / github.com/ScrapeGraphAI/Scrapegraph-ai / DummyLLMWithPipe

Class DummyLLMWithPipe

tests/test_generate_answer_node.py:59–68  ·  view source on GitHub ↗

DummyLLM that supports the pipe '|' operator. When used in a chain with a PromptTemplate, the pipe operator returns self, simulating chain composition.

Source from the content-addressed store, hash-verified

57
58
59class DummyLLMWithPipe:
60 """DummyLLM that supports the pipe '|' operator.
61 When used in a chain with a PromptTemplate, the pipe operator returns self,
62 simulating chain composition."""
63
64 def __or__(self, other):
65 return self
66
67 def __call__(self, *args, **kwargs):
68 return {"content": "script single-chunk answer"}
69
70
71@pytest.fixture

Callers 2

dummy_node_with_pipeFunction · 0.85

Calls

no outgoing calls

Tested by 2

dummy_node_with_pipeFunction · 0.68