core, partners: implement standard tracing params for LLMs (#25410)

This commit is contained in:
ccurme
2024-08-16 13:18:09 -04:00
committed by GitHub
parent 9f0c76bf89
commit b83f1eb0d5
17 changed files with 298 additions and 36 deletions

View File

@@ -6,6 +6,7 @@ EXPECTED_ALL = [
"SimpleChatModel",
"BaseLLM",
"LLM",
"LangSmithParams",
"LanguageModelInput",
"LanguageModelOutput",
"LanguageModelLike",

File diff suppressed because one or more lines are too long

View File

@@ -2180,7 +2180,7 @@ async def test_prompt_with_llm(
"value": {
"end_time": None,
"final_output": None,
"metadata": {},
"metadata": {"ls_model_type": "llm", "ls_provider": "fakelist"},
"name": "FakeListLLM",
"start_time": "2023-01-01T00:00:00.000+00:00",
"streamed_output": [],
@@ -2384,7 +2384,10 @@ async def test_prompt_with_llm_parser(
"value": {
"end_time": None,
"final_output": None,
"metadata": {},
"metadata": {
"ls_model_type": "llm",
"ls_provider": "fakestreaminglist",
},
"name": "FakeStreamingListLLM",
"start_time": "2023-01-01T00:00:00.000+00:00",
"streamed_output": [],