162 matches across 1 files for func main lang:Python path:libs/langchain_v1/langchain/agents/middleware/types.py
snippet_mode: auto · sorted by relevance
libs/langchain_v1/langchain/agents/middleware/types.py PYTHON 162 matches · showing 5 view file →
5from collections.abc import Awaitable, Callable, Sequence
6from dataclasses import dataclass, field, replace
7from inspect import iscoroutinefunction
8from typing import (
9 TYPE_CHECKING,
· · ·
385
386 Subclass this and implement any of the defined methods to customize agent behavior
387 between steps in the main agent loop.
388
389 Type Parameters:
· · ·
579 "To resolve this, either: "
580 "(1) subclass AgentMiddleware and implement the synchronous wrap_model_call method, "
581 "(2) use the @wrap_model_call decorator on a standalone sync function, or "
582 "(3) invoke your agent asynchronously using `astream()` or `ainvoke()`."
583 )
· · ·
631 "To resolve this, either: "
632 "(1) subclass AgentMiddleware and implement the asynchronous awrap_model_call method, "
633 "(2) use the @wrap_model_call decorator on a standalone async function, or "
634 "(3) invoke your agent synchronously using `stream()` or `invoke()`."
635 )
· · ·
737 "To resolve this, either: "
738 "(1) subclass AgentMiddleware and implement the synchronous wrap_tool_call method, "
739 "(2) use the @wrap_tool_call decorator on a standalone sync function, or "
740 "(3) invoke your agent asynchronously using `astream()` or `ainvoke()`."
741 )
+ 157 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.