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

Chat LangChain

What can I help with?

Enter to sendยทShift+Enter new line

Menu

OverviewClientAsyncClientRun HelpersRun TreesEvaluationSchemasUtilitiesWrappersAnonymizerTestingExpect APIMiddlewarePytest PluginDeployment SDK
Language
Theme
PythonlangsmithtypesagentAgent
Classโ—Since v0.14

Agent

Copy
Agent()

Bases

BaseModel

Attributes

Inherited fromBaseModel

Attributes

Amodel_fields_set: set[str]Amodel_config: ConfigDictAmodel_construct: construct

Methods

Mto_dict
โ€”

Recursively generate a dictionary representation of the model, optionally specifying which fields to include or exclude.

View source on GitHub
Mto_json
โ€”

Generates a JSON string representing this model as it would be received from or sent to the API (but with indentation).

Mconstruct
Mmodel_dump
โ€”

Usage docs: https://docs.pydantic.dev/2.4/concepts/serialization/#modelmodel_dump

Mmodel_dump_json
โ€”

Usage docs: https://docs.pydantic.dev/2.4/concepts/serialization/#modelmodel_dump_json

Classes

CConfig
attribute
id: str
attribute
agent_type: Literal['CUSTOM', 'CODING']
attribute
agent_uuid: str
attribute
created_at: datetime
attribute
environments: List[Environment]
attribute
name: str
attribute
source_type: Literal['LSD', 'MDA', 'EXTERNAL', 'FLEET']
attribute
avatar_url: Optional[str]
attribute
owner: Optional[str]
attribute
owner_id: Optional[str]
attribute
tag_key_id: Optional[str]
attribute
tag_value_id: Optional[str]

The agent's permanent identifier, assigned by LangSmith and never reused; workload identity subjects name the agent by it.

AvatarURL is a short-lived URL for the agent avatar, when present.

Owner is the owner's full name, falling back to email when available.