Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
9859d08
feat: implements optimize method in SDK, code moved
andrewklatzke Mar 26, 2026
1712e4f
feat: implementation of agent optimization + tests
andrewklatzke Mar 31, 2026
ea596a7
feat: implement ability to use completions or agents for judge calls
andrewklatzke Mar 31, 2026
2fd55e2
feat: all logs -> debug
andrewklatzke Mar 31, 2026
8481690
fix: lints + structured output tool rename
andrewklatzke Mar 31, 2026
f8e5509
fix: lint + missed variable rename
andrewklatzke Mar 31, 2026
c032aaf
fix: sort imports
andrewklatzke Mar 31, 2026
aee6aa7
fix: lint
andrewklatzke Mar 31, 2026
59c7ac7
chore: break up long lines, add spaces where necessary
andrewklatzke Mar 31, 2026
59f03f2
chore: break up another long line
andrewklatzke Mar 31, 2026
e2ff561
chore: fix on_turn path
andrewklatzke Mar 31, 2026
af2dd03
chore: move prompts to own file, better debug info
andrewklatzke Mar 31, 2026
ea43575
chore: update tests, fix cursor feedback
andrewklatzke Mar 31, 2026
2fecd54
feat: implements LD API client, optimize_from_config path
andrewklatzke Apr 1, 2026
d3e1f96
feat: partially implement optimize_from_config
andrewklatzke Apr 1, 2026
44c8c59
feat: ground truth optimization path
andrewklatzke Apr 3, 2026
8f9f1e2
feat: prevent overfitting via prompt changes and post-processing
andrewklatzke Apr 7, 2026
a17fd6e
chore: remove some dead code
andrewklatzke Apr 7, 2026
67fdbf1
chore: remove provided_tool_handlers code
andrewklatzke Apr 7, 2026
3042984
fix: adjust iteration logic so validation doesn't consume them
andrewklatzke Apr 8, 2026
288336e
feat: implement latency & token tracking for optimizations
andrewklatzke Apr 8, 2026
5d76276
feat: add optimization for duration
andrewklatzke Apr 8, 2026
4cb8859
feat: add auto-commit option
andrewklatzke Apr 9, 2026
ba369a2
chore: add tests
andrewklatzke Apr 9, 2026
149aa76
chore: various fixes, improvements for optimization package
andrewklatzke Apr 15, 2026
31c8385
feat: add shared dataclass for calls so they can be handled by same h…
andrewklatzke Apr 15, 2026
55674ae
chore: improve call config, context so they're passable as a single t…
andrewklatzke Apr 16, 2026
8f3468f
fix: success path + add test, cursor feedback
andrewklatzke Apr 16, 2026
7074cfa
feat: dx improvements for optimization package
andrewklatzke Apr 16, 2026
a386a27
chore: update types for lint
andrewklatzke Apr 17, 2026
8d1a868
lint, cursor feedback
andrewklatzke Apr 17, 2026
937542a
chore: additional lint
andrewklatzke Apr 17, 2026
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
1 change: 1 addition & 0 deletions packages/optimization/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ classifiers = [
]
dependencies = [
"launchdarkly-server-sdk-ai>=0.16.0",
"coolname>=2.0.0",
]

[project.urls]
Expand Down
35 changes: 33 additions & 2 deletions packages/optimization/src/ldai_optimization/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,42 @@
This package will provide helpers to run selected tools against the LaunchDarkly API from SDK-based workflows.
"""

from ldai_optimization.client import ApiAgentOptimizationClient
from ldai.tracker import TokenUsage

from ldai_optimization.client import OptimizationClient
from ldai_optimization.dataclasses import (
AIJudgeCallConfig,
GroundTruthOptimizationOptions,
GroundTruthSample,
LLMCallConfig,
LLMCallContext,
OptimizationContext,
OptimizationFromConfigOptions,
OptimizationJudge,
OptimizationJudgeContext,
OptimizationOptions,
OptimizationResponse,
ToolDefinition,
)
from ldai_optimization.ld_api_client import LDApiError

__version__ = "0.0.0"

__all__ = [
'__version__',
'ApiAgentOptimizationClient',
'AIJudgeCallConfig',
'GroundTruthOptimizationOptions',
'GroundTruthSample',
'LDApiError',
'LLMCallConfig',
'LLMCallContext',
'OptimizationClient',
'OptimizationContext',
'OptimizationFromConfigOptions',
'OptimizationJudge',
'OptimizationJudgeContext',
'OptimizationOptions',
'OptimizationResponse',
'TokenUsage',
'ToolDefinition',
]
Loading
Loading