Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion features/create_agent/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ agent = "create_agent_example:main"
[tool.poetry.dependencies]
python = "^3.10"
python-dotenv = ">=1.0.0"
launchdarkly-server-sdk-ai = ">=0.19.0"
launchdarkly-server-sdk-ai = ">=0.20.0"
launchdarkly-observability = ">=0.1.0"
launchdarkly-server-sdk-ai-openai = {version = ">=0.5.0", extras = ["agents"]}
launchdarkly-server-sdk-ai-langchain = ">=0.6.0"
Expand Down
2 changes: 1 addition & 1 deletion features/create_agent_graph/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ agent-graph = "create_agent_graph_example:main"
[tool.poetry.dependencies]
python = "^3.10"
python-dotenv = ">=1.0.0"
launchdarkly-server-sdk-ai = ">=0.19.0"
launchdarkly-server-sdk-ai = ">=0.20.0"
launchdarkly-observability = ">=0.1.0"
launchdarkly-server-sdk-ai-openai = {version = ">=0.5.0", extras = ["agents"]}
launchdarkly-server-sdk-ai-langchain = {version = ">=0.6.0", extras = ["graph"]}
Expand Down
2 changes: 1 addition & 1 deletion features/create_judge/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ judge = "create_judge_example:main"
[tool.poetry.dependencies]
python = "^3.10"
python-dotenv = ">=1.0.0"
launchdarkly-server-sdk-ai = ">=0.19.0"
launchdarkly-server-sdk-ai = ">=0.20.0"
launchdarkly-observability = ">=0.1.0"
launchdarkly-server-sdk-ai-openai = ">=0.5.0"
launchdarkly-server-sdk-ai-langchain = ">=0.6.0"
Expand Down
2 changes: 1 addition & 1 deletion features/create_model/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ model = "create_model_example:main"
[tool.poetry.dependencies]
python = "^3.10"
python-dotenv = ">=1.0.0"
launchdarkly-server-sdk-ai = ">=0.19.0"
launchdarkly-server-sdk-ai = ">=0.20.0"
launchdarkly-observability = ">=0.1.0"
launchdarkly-server-sdk-ai-openai = ">=0.5.0"
launchdarkly-server-sdk-ai-langchain = ">=0.6.0"
Expand Down
2 changes: 1 addition & 1 deletion getting_started/bedrock/converse/bedrock_example.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def get_bedrock_metrics(response):

duration_ms = response.get("metrics", {}).get("latencyMs")

return LDAIMetrics(success=success, usage=usage, duration_ms=duration_ms)
return LDAIMetrics(success=success, tokens=usage, duration_ms=duration_ms)

# Set sdk_key to your LaunchDarkly SDK key.
sdk_key = os.getenv('LAUNCHDARKLY_SDK_KEY')
Expand Down
2 changes: 1 addition & 1 deletion getting_started/bedrock/converse/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ bedrock = "bedrock_example:main"
[tool.poetry.dependencies]
python = "^3.10"
python-dotenv = ">=1.0.0"
launchdarkly-server-sdk-ai = ">=0.19.0"
launchdarkly-server-sdk-ai = ">=0.20.0"
launchdarkly-observability = ">=0.1.0"
boto3 = ">=0.2.0"

Expand Down
2 changes: 1 addition & 1 deletion getting_started/gemini/generate_content/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ gemini = "gemini_example:main"
[tool.poetry.dependencies]
python = "^3.10"
python-dotenv = ">=1.0.0"
launchdarkly-server-sdk-ai = ">=0.19.0"
launchdarkly-server-sdk-ai = ">=0.20.0"
launchdarkly-observability = ">=0.1.0"
google-genai = "^1.30.0"

Expand Down
2 changes: 1 addition & 1 deletion getting_started/langchain/invoke/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ langchain = "langchain_example:main"
[tool.poetry.dependencies]
python = "^3.10"
python-dotenv = ">=1.0.0"
launchdarkly-server-sdk-ai = ">=0.19.0"
launchdarkly-server-sdk-ai = ">=0.20.0"
launchdarkly-observability = ">=0.1.0"
launchdarkly-server-sdk-ai-langchain = ">=0.6.0"
langchain = "^1.0.0"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def map_provider_to_langchain(provider_name):
def get_langgraph_metrics(response):
"""Extract aggregated metrics from a LangGraph agent response."""
messages = response.get("messages", [])
return LDAIMetrics(success=True, usage=sum_token_usage_from_messages(messages))
return LDAIMetrics(success=True, tokens=sum_token_usage_from_messages(messages))

def get_weather(city: str) -> str:
"""Get the weather for a given city."""
Expand Down
2 changes: 1 addition & 1 deletion getting_started/langgraph/react_agent/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ agent = "langgraph_agent_example:main"
[tool.poetry.dependencies]
python = "^3.10"
python-dotenv = ">=1.0.0"
launchdarkly-server-sdk-ai = ">=0.19.0"
launchdarkly-server-sdk-ai = ">=0.20.0"
launchdarkly-observability = ">=0.1.0"
launchdarkly-server-sdk-ai-langchain = ">=0.6.0"
langchain = "^1.0.0"
Expand Down
2 changes: 1 addition & 1 deletion getting_started/langgraph/state_graph/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ agent-graph = "langgraph_multi_agent_example:main"
[tool.poetry.dependencies]
python = "^3.10"
python-dotenv = ">=1.0.0"
launchdarkly-server-sdk-ai = ">=0.19.0"
launchdarkly-server-sdk-ai = ">=0.20.0"
launchdarkly-observability = ">=0.1.0"
launchdarkly-server-sdk-ai-langchain = ">=0.6.0"
langchain = "^1.0.0"
Expand Down
2 changes: 1 addition & 1 deletion getting_started/openai/chat_completions/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ openai = "openai_example:main"
[tool.poetry.dependencies]
python = "^3.10"
python-dotenv = ">=1.0.0"
launchdarkly-server-sdk-ai = ">=0.19.0"
launchdarkly-server-sdk-ai = ">=0.20.0"
launchdarkly-observability = ">=0.1.0"
launchdarkly-server-sdk-ai-openai = ">=0.5.0"
openai = ">=1.0.0"
Expand Down
Loading