170 matches across 1 files for func main lang:Python 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 170 matches · showing 5 view file →
6from collections.abc import Awaitable, Callable, Sequence
7from dataclasses import dataclass, field, replace
8from inspect import iscoroutinefunction
9from typing import (
10 TYPE_CHECKING,
· · ·
381
382 Subclass this and implement any of the defined methods to customize agent behavior
383 between steps in the main agent loop.
384
385 Type Parameters:
· · ·
575 "To resolve this, either: "
576 "(1) subclass AgentMiddleware and implement the synchronous wrap_model_call method, "
577 "(2) use the @wrap_model_call decorator on a standalone sync function, or "
578 "(3) invoke your agent asynchronously using `astream()` or `ainvoke()`."
579 )
· · ·
627 "To resolve this, either: "
628 "(1) subclass AgentMiddleware and implement the asynchronous awrap_model_call method, "
629 "(2) use the @wrap_model_call decorator on a standalone async function, or "
630 "(3) invoke your agent synchronously using `stream()` or `invoke()`."
631 )
· · ·
733 "To resolve this, either: "
734 "(1) subclass AgentMiddleware and implement the synchronous wrap_tool_call method, "
735 "(2) use the @wrap_tool_call decorator on a standalone sync function, or "
736 "(3) invoke your agent asynchronously using `astream()` or `ainvoke()`."
737 )
+ 165 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.