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
  • RemoteGraph
⌘I

LangChain Assistant

Ask a question to get started

Enter to send•Shift+Enter new line

Menu

OverviewClientAsyncClientRun HelpersRun TreesEvaluationSchemasUtilitiesWrappersAnonymizerTestingExpect APIMiddlewarePytest PluginDeployment SDKRemoteGraph
Language
Theme
PythonlangsmithclientClientcreate_llm_example
Method●Since v0.0

create_llm_example

Add an example (row) to an LLM-type dataset.

Copy
create_llm_example(
  self,
  prompt: str,
  generation: Optional[str] = None,
  dataset_id: Optional[ID_TYPE] = None,
  dataset_name: Optional[str] = None,
  created_at: Optional[datetime.datetime] = None
) -> ls_schemas.Example

Parameters

NameTypeDescription
prompt*str

The input prompt for the example.

generationOptional[str]
Default:None

The output generation for the example.

dataset_idOptional[Union[UUID, str]]
Default:None

The ID of the dataset.

dataset_nameOptional[str]
Default:None

The name of the dataset.

created_atOptional[datetime.datetime]
Default:None

The creation timestamp of the example.

View source on GitHub