LangChain Reference home pageLangChain ReferenceLangChain Reference
  • GitHub
  • Main Docs
Deep Agents
LangChain
LangGraph
Integrations
LangSmith
  • Overview
  • Client
  • AsyncClient
  • Run Helpers
  • Run Trees
  • Evaluation
  • Schemas
  • Utilities
  • Wrappers
  • Anonymizer
  • Testing
  • Expect API
  • Middleware
  • Pytest Plugin
  • Deployment SDK
⌘I

LangChain Assistant

Ask a question to get started

Enter to send•Shift+Enter new line

Menu

OverviewClientAsyncClientRun HelpersRun TreesEvaluationSchemasUtilitiesWrappersAnonymizerTestingExpect APIMiddlewarePytest PluginDeployment SDK
Language
Theme
PythonlangsmithutilsContextThreadPoolExecutorsubmit
Method●Since v0.1

submit

Submit a function to the executor.

Copy
submit( self, func: Callable[P, T], *args: P.args = (), **kwargs: P.kwargs = {} ) -> Future[T]

Parameters

NameTypeDescription
func*Callable[..., T]

The function to submit.

*argsAny
Default:()

The positional arguments to the function.

**kwargsAny
Default:{}

The keyword arguments to the function.

View source on GitHub