49 matches across 1 files for func main path:libs/standard-tests/langchain_tests/integration_tests/chat_models.py
snippet_mode: auto · sorted by relevance
libs/standard-tests/langchain_tests/integration_tests/chat_models.py PYTHON 49 matches · showing 5 view file →
29from langchain_core.prompts import ChatPromptTemplate
30from langchain_core.tools import BaseTool, tool
31from langchain_core.utils.function_calling import (
32 convert_to_json_schema,
33 tool_example_to_messages,
· · ·
99
100
101class _MagicFunctionSchema(BaseModel):
102 input: int = Field(..., gt=-1000, lt=1000)
103
· · ·
104
105@tool(args_schema=_MagicFunctionSchema)
106def magic_function(_input: int) -> int:
107 """Apply a magic function to an input."""
· · ·
106def magic_function(_input: int) -> int:
107 """Apply a magic function to an input."""
108 return _input + 2
· · ·
107 """Apply a magic function to an input."""
108 return _input + 2
109
+ 44 more matches in this file
Search syntax
auth loginboth terms (AND is implicit)
auth OR logineither term
NOT path:vendorexclude matches
"exact phrase"quoted exact match
/func\s+Test/regex
handler~1fuzzy (Levenshtein 1)
file:*_test.gofilename glob
path:pkg/auth/**full path glob
lang:golanguage filter

Search any public repo from your terminal

This page calls POST /api/v1/code_search. Same tool, available over MCP for Claude/Cursor/Copilot.