judgeval 0.15.0__py3-none-any.whl → 0.16.1__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- judgeval/api/__init__.py +4 -18
- judgeval/api/api_types.py +18 -2
- judgeval/data/judgment_types.py +18 -2
- judgeval/logger.py +1 -1
- judgeval/tracer/__init__.py +10 -7
- judgeval/tracer/keys.py +7 -3
- judgeval/tracer/llm/__init__.py +2 -1227
- judgeval/tracer/llm/config.py +110 -0
- judgeval/tracer/llm/constants.py +10 -0
- judgeval/tracer/llm/llm_anthropic/__init__.py +3 -0
- judgeval/tracer/llm/llm_anthropic/wrapper.py +611 -0
- judgeval/tracer/llm/llm_google/__init__.py +0 -0
- judgeval/tracer/llm/llm_google/config.py +24 -0
- judgeval/tracer/llm/llm_google/wrapper.py +426 -0
- judgeval/tracer/llm/llm_groq/__init__.py +0 -0
- judgeval/tracer/llm/llm_groq/config.py +23 -0
- judgeval/tracer/llm/llm_groq/wrapper.py +477 -0
- judgeval/tracer/llm/llm_openai/__init__.py +3 -0
- judgeval/tracer/llm/llm_openai/wrapper.py +637 -0
- judgeval/tracer/llm/llm_together/__init__.py +0 -0
- judgeval/tracer/llm/llm_together/config.py +23 -0
- judgeval/tracer/llm/llm_together/wrapper.py +478 -0
- judgeval/tracer/llm/providers.py +5 -5
- judgeval/tracer/processors/__init__.py +1 -1
- judgeval/trainer/console.py +1 -1
- judgeval/utils/decorators/__init__.py +0 -0
- judgeval/utils/decorators/dont_throw.py +21 -0
- judgeval/utils/{decorators.py → decorators/use_once.py} +0 -11
- judgeval/utils/meta.py +1 -1
- judgeval/utils/version_check.py +1 -1
- judgeval/version.py +1 -1
- judgeval-0.16.1.dist-info/METADATA +266 -0
- {judgeval-0.15.0.dist-info → judgeval-0.16.1.dist-info}/RECORD +38 -24
- judgeval/tracer/llm/google/__init__.py +0 -21
- judgeval/tracer/llm/groq/__init__.py +0 -20
- judgeval/tracer/llm/together/__init__.py +0 -20
- judgeval-0.15.0.dist-info/METADATA +0 -158
- /judgeval/tracer/llm/{anthropic/__init__.py → llm_anthropic/config.py} +0 -0
- /judgeval/tracer/llm/{openai/__init__.py → llm_openai/config.py} +0 -0
- {judgeval-0.15.0.dist-info → judgeval-0.16.1.dist-info}/WHEEL +0 -0
- {judgeval-0.15.0.dist-info → judgeval-0.16.1.dist-info}/entry_points.txt +0 -0
- {judgeval-0.15.0.dist-info → judgeval-0.16.1.dist-info}/licenses/LICENSE.md +0 -0
@@ -0,0 +1,266 @@
|
|
1
|
+
Metadata-Version: 2.4
|
2
|
+
Name: judgeval
|
3
|
+
Version: 0.16.1
|
4
|
+
Summary: Judgeval Package
|
5
|
+
Project-URL: Homepage, https://github.com/JudgmentLabs/judgeval
|
6
|
+
Project-URL: Issues, https://github.com/JudgmentLabs/judgeval/issues
|
7
|
+
Author-email: Andrew Li <andrew@judgmentlabs.ai>, Alex Shan <alex@judgmentlabs.ai>, Joseph Camyre <joseph@judgmentlabs.ai>
|
8
|
+
License-Expression: Apache-2.0
|
9
|
+
License-File: LICENSE.md
|
10
|
+
Classifier: Operating System :: OS Independent
|
11
|
+
Classifier: Programming Language :: Python :: 3
|
12
|
+
Requires-Python: >=3.10
|
13
|
+
Requires-Dist: boto3>=1.40.11
|
14
|
+
Requires-Dist: click<8.2.0
|
15
|
+
Requires-Dist: dotenv
|
16
|
+
Requires-Dist: httpx>=0.28.1
|
17
|
+
Requires-Dist: litellm<1.75.0
|
18
|
+
Requires-Dist: opentelemetry-exporter-otlp>=1.36.0
|
19
|
+
Requires-Dist: opentelemetry-sdk>=1.36.0
|
20
|
+
Requires-Dist: orjson>=3.9.0
|
21
|
+
Requires-Dist: typer>=0.9.0
|
22
|
+
Provides-Extra: s3
|
23
|
+
Requires-Dist: boto3>=1.40.11; extra == 's3'
|
24
|
+
Provides-Extra: trainer
|
25
|
+
Requires-Dist: fireworks-ai>=0.19.18; extra == 'trainer'
|
26
|
+
Description-Content-Type: text/markdown
|
27
|
+
|
28
|
+
<div align="center">
|
29
|
+
|
30
|
+
<a href="https://judgmentlabs.ai/">
|
31
|
+
<picture>
|
32
|
+
<source media="(prefers-color-scheme: dark)" srcset="assets/logo_darkmode.svg">
|
33
|
+
<img src="assets/logo_lightmode.svg" alt="Judgment Logo" width="400" />
|
34
|
+
</picture>
|
35
|
+
</a>
|
36
|
+
|
37
|
+
<br>
|
38
|
+
|
39
|
+
## Agent Behavior Monitoring (ABM)
|
40
|
+
|
41
|
+
Track and judge any agent behavior in online and offline setups. Set up Sentry-style alerts and analyze agent behaviors / topic patterns at scale!
|
42
|
+
|
43
|
+
[](https://docs.judgmentlabs.ai/documentation)
|
44
|
+
[](https://app.judgmentlabs.ai/register)
|
45
|
+
[](https://docs.judgmentlabs.ai/documentation/self-hosting/get-started)
|
46
|
+
|
47
|
+
|
48
|
+
[](https://x.com/JudgmentLabs)
|
49
|
+
[](https://www.linkedin.com/company/judgmentlabs)
|
50
|
+
|
51
|
+
</div>
|
52
|
+
|
53
|
+
|
54
|
+
</table>
|
55
|
+
|
56
|
+
## [NEW] 🎆 Agent Reinforcement Learning
|
57
|
+
|
58
|
+
Train your agents with multi-turn reinforcement learning using judgeval and [Fireworks AI](https://fireworks.ai/)! Judgeval's ABM now integrates with Fireworks' Reinforcement Fine-Tuning (RFT) endpoint, supporting gpt-oss, qwen3, Kimi2, DeepSeek, and more.
|
59
|
+
|
60
|
+
Judgeval's agent monitoring infra provides a simple harness for integrating GRPO into any Python agent, giving builders a quick method to **try RL with minimal code changes** to their existing agents!
|
61
|
+
|
62
|
+
```python
|
63
|
+
await trainer.train(
|
64
|
+
agent_function=your_agent_function, # entry point to your agent
|
65
|
+
scorers=[RewardScorer()], # Custom scorer you define based on task criteria, acts as reward
|
66
|
+
prompts=training_prompts, # Tasks
|
67
|
+
rft_provider="fireworks"
|
68
|
+
)
|
69
|
+
```
|
70
|
+
|
71
|
+
**That's it!** Judgeval automatically manages trajectory collection and reward tagging - your agent can learn from production data with minimal code changes.
|
72
|
+
|
73
|
+
👉 Check out the [Wikipedia Racer notebook](https://colab.research.google.com/github/JudgmentLabs/judgment-cookbook/blob/main/rl/WikiRacingAgent_RL.ipynb), where an agent learns to navigate Wikipedia using RL, to see Judgeval in action.
|
74
|
+
|
75
|
+
|
76
|
+
You can view and monitor training progress for free via the [Judgment Dashboard](https://app.judgmentlabs.ai/).
|
77
|
+
|
78
|
+
|
79
|
+
## Judgeval Overview
|
80
|
+
|
81
|
+
Judgeval is an open-source framework for agent behavior monitoring. Judgeval offers a toolkit to track and judge agent behavior in online and offline setups, enabling you to convert interaction data from production/test environments into improved agents. To get started, try running one of the notebooks below or dive deeper in our [docs](https://docs.judgmentlabs.ai/documentation).
|
82
|
+
|
83
|
+
Our mission is to unlock the power of production data for agent development, enabling teams to improve their apps by catching real-time failures and optimizing over their users' preferences.
|
84
|
+
|
85
|
+
## 📚 Cookbooks
|
86
|
+
|
87
|
+
| Try Out | Notebook | Description |
|
88
|
+
|:---------|:-----|:------------|
|
89
|
+
| RL | [Wikipedia Racer](https://colab.research.google.com/github/JudgmentLabs/judgment-cookbook/blob/main/rl/WikiRacingAgent_RL.ipynb) | Train agents with reinforcement learning |
|
90
|
+
| Online ABM | [Research Agent](https://colab.research.google.com/github/JudgmentLabs/judgment-cookbook/blob/main/monitoring/Research_Agent_Online_Monitoring.ipynb) | Monitor agent behavior in production |
|
91
|
+
| Custom Scorers | [HumanEval](https://colab.research.google.com/github/JudgmentLabs/judgment-cookbook/blob/main/custom_scorers/HumanEval_Custom_Scorer.ipynb) | Build custom evaluators for your agents |
|
92
|
+
| Offline Testing | [Get Started For Free] | Compare how different prompts, models, or agent configs affect performance across ANY metric |
|
93
|
+
|
94
|
+
You can access our [repo of cookbooks](https://github.com/JudgmentLabs/judgment-cookbook).
|
95
|
+
|
96
|
+
You can find a list of [video tutorials for Judgeval use cases](https://www.youtube.com/@Alexshander-JL).
|
97
|
+
|
98
|
+
## Why Judgeval?
|
99
|
+
|
100
|
+
🤖 **Simple to run multi-turn RL**: Optimize your agents with multi-turn RL without managing compute infrastructure or data pipelines. Just add a few lines of code to your existing agent code and train!
|
101
|
+
|
102
|
+
⚙️ **Custom Evaluators**: No restriction to only monitoring with prefab scorers. Judgeval provides simple abstractions for custom Python scorers, supporting any LLM-as-a-judge rubrics/models and code-based scorers that integrate to our live agent-tracking infrastructure. [Learn more](https://docs.judgmentlabs.ai/documentation/evaluation/custom-scorers)
|
103
|
+
|
104
|
+
🚨 **Production Monitoring**: Run any custom scorer in a hosted, virtualized secure container to flag agent behaviors online in production. Get Slack alerts for failures and add custom hooks to address regressions before they impact users. [Learn more](https://docs.judgmentlabs.ai/documentation/performance/online-evals)
|
105
|
+
|
106
|
+
📊 **Behavior/Topic Grouping**: Group agent runs by behavior type or topic for deeper analysis. Drill down into subsets of users, agents, or use cases to reveal patterns of agent behavior.
|
107
|
+
<!-- Add link to Bucketing docs once we have it -->
|
108
|
+
<!--
|
109
|
+
TODO: Once we have trainer code docs, plug in here
|
110
|
+
-->
|
111
|
+
|
112
|
+
🧪 **Run experiments on your agents**: Compare test different prompts, models, or agent configs across customer segments. Measure which changes improve agent performance and decrease bad agent behaviors.
|
113
|
+
|
114
|
+
<!--
|
115
|
+
Use this once we have AI PM features:
|
116
|
+
|
117
|
+
**Run experiments on your agents**: A/B test different prompts, models, or agent configs across customer segments. Measure which changes improve agent performance and decrease bad agent behaviors. [Learn more]
|
118
|
+
|
119
|
+
-->
|
120
|
+
|
121
|
+
## 🛠️ Quickstart
|
122
|
+
|
123
|
+
Get started with Judgeval by installing our SDK using pip:
|
124
|
+
|
125
|
+
```bash
|
126
|
+
pip install judgeval
|
127
|
+
```
|
128
|
+
|
129
|
+
Ensure you have your `JUDGMENT_API_KEY` and `JUDGMENT_ORG_ID` environment variables set to connect to the [Judgment Platform](https://app.judgmentlabs.ai/).
|
130
|
+
|
131
|
+
```bash
|
132
|
+
export JUDGMENT_API_KEY=...
|
133
|
+
export JUDGMENT_ORG_ID=...
|
134
|
+
```
|
135
|
+
|
136
|
+
**If you don't have keys, [create an account for free](https://app.judgmentlabs.ai/register) on the platform!**
|
137
|
+
|
138
|
+
### Start monitoring with Judgeval
|
139
|
+
|
140
|
+
```python
|
141
|
+
from judgeval.tracer import Tracer, wrap
|
142
|
+
from judgeval.data import Example
|
143
|
+
from judgeval.scorers import AnswerRelevancyScorer
|
144
|
+
from openai import OpenAI
|
145
|
+
|
146
|
+
|
147
|
+
judgment = Tracer(project_name="default_project")
|
148
|
+
client = wrap(OpenAI()) # tracks all LLM calls
|
149
|
+
|
150
|
+
@judgment.observe(span_type="tool")
|
151
|
+
def format_question(question: str) -> str:
|
152
|
+
# dummy tool
|
153
|
+
return f"Question : {question}"
|
154
|
+
|
155
|
+
@judgment.observe(span_type="function")
|
156
|
+
def run_agent(prompt: str) -> str:
|
157
|
+
task = format_question(prompt)
|
158
|
+
response = client.chat.completions.create(
|
159
|
+
model="gpt-5-mini",
|
160
|
+
messages=[{"role": "user", "content": task}]
|
161
|
+
)
|
162
|
+
|
163
|
+
judgment.async_evaluate( # trigger online monitoring
|
164
|
+
scorer=AnswerRelevancyScorer(threshold=0.5), # swap with any scorer
|
165
|
+
example=Example(input=task, actual_output=response), # customize to your data
|
166
|
+
model="gpt-5",
|
167
|
+
)
|
168
|
+
return response.choices[0].message.content
|
169
|
+
|
170
|
+
run_agent("What is the capital of the United States?")
|
171
|
+
```
|
172
|
+
|
173
|
+
Running this code will deliver monitoring results to your [free platform account](https://app.judgmentlabs.ai/register) and should look like this:
|
174
|
+
|
175
|
+

|
176
|
+
|
177
|
+
|
178
|
+
### Customizable Scorers Over Agent Behavior
|
179
|
+
|
180
|
+
Judgeval's strongest suit is the full customization over the types of scorers you can run online monitoring with. No restrictions to only single-prompt LLM judges or prefab scorers - if you can express your scorer
|
181
|
+
in python code, judgeval can monitor it! Under the hood, judgeval hosts your scorer in a virtualized secure container, enabling online monitoring for any scorer.
|
182
|
+
|
183
|
+
|
184
|
+
First, create a behavior scorer in a file called `helpfulness_scorer.py`:
|
185
|
+
|
186
|
+
```python
|
187
|
+
from judgeval.data import Example
|
188
|
+
from judgeval.scorers.example_scorer import ExampleScorer
|
189
|
+
|
190
|
+
# Define custom example class
|
191
|
+
class QuestionAnswer(Example):
|
192
|
+
question: str
|
193
|
+
answer: str
|
194
|
+
|
195
|
+
# Define a server-hosted custom scorer
|
196
|
+
class HelpfulnessScorer(ExampleScorer):
|
197
|
+
name: str = "Helpfulness Scorer"
|
198
|
+
server_hosted: bool = True # Enable server hosting
|
199
|
+
async def a_score_example(self, example: QuestionAnswer):
|
200
|
+
# Custom scoring logic for agent behavior
|
201
|
+
# Can be an arbitrary combination of code and LLM calls
|
202
|
+
if len(example.answer) > 10 and "?" not in example.answer:
|
203
|
+
self.reason = "Answer is detailed and provides helpful information"
|
204
|
+
return 1.0
|
205
|
+
else:
|
206
|
+
self.reason = "Answer is too brief or unclear"
|
207
|
+
return 0.0
|
208
|
+
```
|
209
|
+
|
210
|
+
Then deploy your scorer to Judgment's infrastructure:
|
211
|
+
|
212
|
+
```bash
|
213
|
+
echo "pydantic" > requirements.txt
|
214
|
+
uv run judgeval upload_scorer helpfulness_scorer.py requirements.txt
|
215
|
+
```
|
216
|
+
|
217
|
+
Now you can instrument your agent with monitoring and online evaluation:
|
218
|
+
|
219
|
+
```python
|
220
|
+
from judgeval.tracer import Tracer, wrap
|
221
|
+
from helpfulness_scorer import HelpfulnessScorer, QuestionAnswer
|
222
|
+
from openai import OpenAI
|
223
|
+
|
224
|
+
judgment = Tracer(project_name="default_project")
|
225
|
+
client = wrap(OpenAI()) # tracks all LLM calls
|
226
|
+
|
227
|
+
@judgment.observe(span_type="tool")
|
228
|
+
def format_task(question: str) -> str: # replace with your prompt engineering
|
229
|
+
return f"Please answer the following question: {question}"
|
230
|
+
|
231
|
+
@judgment.observe(span_type="tool")
|
232
|
+
def answer_question(prompt: str) -> str: # replace with your LLM system calls
|
233
|
+
response = client.chat.completions.create(
|
234
|
+
model="gpt-5-mini",
|
235
|
+
messages=[{"role": "user", "content": prompt}]
|
236
|
+
)
|
237
|
+
return response.choices[0].message.content
|
238
|
+
|
239
|
+
@judgment.observe(span_type="function")
|
240
|
+
def run_agent(question: str) -> str:
|
241
|
+
task = format_task(question)
|
242
|
+
answer = answer_question(task)
|
243
|
+
|
244
|
+
# Add online evaluation with server-hosted scorer
|
245
|
+
judgment.async_evaluate(
|
246
|
+
scorer=HelpfulnessScorer(),
|
247
|
+
example=QuestionAnswer(question=question, answer=answer),
|
248
|
+
sampling_rate=0.9 # Evaluate 90% of agent runs
|
249
|
+
)
|
250
|
+
|
251
|
+
return answer
|
252
|
+
|
253
|
+
if __name__ == "__main__":
|
254
|
+
result = run_agent("What is the capital of the United States?")
|
255
|
+
print(result)
|
256
|
+
```
|
257
|
+
|
258
|
+
Congratulations! Your online eval result should look like this:
|
259
|
+
|
260
|
+

|
261
|
+
|
262
|
+
You can now run any online scorer in a secure Firecracker microVMs with no latency impact on your applications.
|
263
|
+
|
264
|
+
---
|
265
|
+
|
266
|
+
Judgeval is created and maintained by [Judgment Labs](https://judgmentlabs.ai/).
|
@@ -3,15 +3,15 @@ judgeval/cli.py,sha256=C7QfElL1sys6hjRpI8rNkFgGqmnsLQGk3lU-9OGbXT0,1612
|
|
3
3
|
judgeval/constants.py,sha256=JZZJ1MqzZZDVk-5PRPRbmLnM8mXI-RDL5vxa1JFuscs,3408
|
4
4
|
judgeval/env.py,sha256=37Mn4g0OkpFxXCZGlO_CLqKJnyX-jx_R24tC28XJzig,2112
|
5
5
|
judgeval/exceptions.py,sha256=tTbfe4yoOtPXmn22UQz9-6a-5PT9uOko85xaRRwr0Sw,621
|
6
|
-
judgeval/logger.py,sha256=
|
7
|
-
judgeval/version.py,sha256=
|
6
|
+
judgeval/logger.py,sha256=VP5blbsJ53mvJbNHfBf5p2KrARUrkrErpPkB-__Hh3U,1562
|
7
|
+
judgeval/version.py,sha256=E9GfLYqQOVVxwpAsbmQY8_rlL12TBLF1VSdmcy7Phzo,74
|
8
8
|
judgeval/warnings.py,sha256=LbGte14ppiFjrkp-JJYueZ40NWFvMkWRvPXr6r-fUWw,73
|
9
|
-
judgeval/api/__init__.py,sha256=
|
10
|
-
judgeval/api/api_types.py,sha256=
|
9
|
+
judgeval/api/__init__.py,sha256=ho8L4wC9y-STYEpk5zHwc2mZJhC4ezW8jiGgOIERBVY,12058
|
10
|
+
judgeval/api/api_types.py,sha256=KRPJRDX9pFHa39VudA823r34eihJS2DCirNLe0tdtbs,8900
|
11
11
|
judgeval/data/__init__.py,sha256=1tU0EN0ThIfQ1fad5I3dKxAfTcZ5U8cvTLcQ6qLVLU0,407
|
12
12
|
judgeval/data/evaluation_run.py,sha256=O41p99wNAuCAf6lsLNKzkZ6W-kL9LlzCYxVls7IcKkA,4727
|
13
13
|
judgeval/data/example.py,sha256=eGJpF-lyUH734Cg90B7WtU9f8iKoS3VFGeV6R-GVCCc,1039
|
14
|
-
judgeval/data/judgment_types.py,sha256=
|
14
|
+
judgeval/data/judgment_types.py,sha256=7XHLA6UM0BlGR0Sz6Fbu9BIUZqPJQz_nDW5GySXCiIk,16646
|
15
15
|
judgeval/data/result.py,sha256=XufFGSAkBDfevPUmzSgsR9HEqytISkM0U5HkhJmsjpY,2102
|
16
16
|
judgeval/data/scorer_data.py,sha256=HeP15ZgftFTJCF8JmDJCLWXRnZJIaGDJCzl7Hg6gWwE,2006
|
17
17
|
judgeval/data/trace.py,sha256=zSiR3o6xt8Z46XA3M9fJBtViF0BsPO6yKp9jxdscOSc,3881
|
@@ -41,9 +41,9 @@ judgeval/scorers/judgeval_scorers/api_scorers/answer_relevancy.py,sha256=ciiFBQQ
|
|
41
41
|
judgeval/scorers/judgeval_scorers/api_scorers/faithfulness.py,sha256=ucYOI6ztAjfoYmcgTDzN8u5RrehlVqrkeLEfss9b1fk,441
|
42
42
|
judgeval/scorers/judgeval_scorers/api_scorers/instruction_adherence.py,sha256=V3RdrWhnR_vLBrtWw7QbgN9K_A-Och7-v9I2fN4z8gY,506
|
43
43
|
judgeval/scorers/judgeval_scorers/api_scorers/prompt_scorer.py,sha256=zJ0n3HyZ1FFBnMnTYxBi37m_3Er7ENd4HpqLjNi5Eag,10902
|
44
|
-
judgeval/tracer/__init__.py,sha256=
|
44
|
+
judgeval/tracer/__init__.py,sha256=NQ84UE__-0Bmqm0YTOf7mdi1zHf8iLaL2bC6fc-VUVw,36443
|
45
45
|
judgeval/tracer/constants.py,sha256=ae8tivAW97awJQxdRB9OMqX50wOLX3zqChT_AGkPBu0,85
|
46
|
-
judgeval/tracer/keys.py,sha256=
|
46
|
+
judgeval/tracer/keys.py,sha256=8HsLASFPfqNtXwdXpihIbmFONpUdUGpYvHQK9jqrHvQ,2220
|
47
47
|
judgeval/tracer/local_eval_queue.py,sha256=KZKvSSli7B-EVzdHa4-CmXUpv0uOjGLLRa2KTPg8lRc,7320
|
48
48
|
judgeval/tracer/managers.py,sha256=NEkovnK8Qaod1U5msT0_hyHUqo9C2uFro2IzNlC8jCo,5071
|
49
49
|
judgeval/tracer/utils.py,sha256=lbL_90pV3VNrz-GlJy_BQzjd1mKWR6zeJYbubTjU3UA,530
|
@@ -51,30 +51,44 @@ judgeval/tracer/exporters/__init__.py,sha256=3WDXC28iY5gYMM5s7ejmy7P-DVDQ_iIuzwo
|
|
51
51
|
judgeval/tracer/exporters/s3.py,sha256=N9gmw17cnR0VkfAQQkLsNj5BksgNRETThR5qYhWRjP4,4360
|
52
52
|
judgeval/tracer/exporters/store.py,sha256=KQV3cyqteesByQjR-9VdPXT9OlUZ-6F08ogqj837_c0,1012
|
53
53
|
judgeval/tracer/exporters/utils.py,sha256=JRcoSQuEHxMDJbXfyrUIfA2SHBVkZM82h4bTbYGxkNw,1154
|
54
|
-
judgeval/tracer/llm/__init__.py,sha256=
|
55
|
-
judgeval/tracer/llm/
|
56
|
-
judgeval/tracer/llm/
|
57
|
-
judgeval/tracer/llm/
|
58
|
-
judgeval/tracer/llm/
|
59
|
-
judgeval/tracer/llm/
|
60
|
-
judgeval/tracer/llm/
|
61
|
-
judgeval/tracer/
|
54
|
+
judgeval/tracer/llm/__init__.py,sha256=ENxApieKSktYrIviofXWP9GU0WnhBm0Q9mlGe_m_gMY,139
|
55
|
+
judgeval/tracer/llm/config.py,sha256=fpfn-fJssWb4x7oxN24JK5jKdOoC15DY6cWsGklMH90,4009
|
56
|
+
judgeval/tracer/llm/constants.py,sha256=V2_P4SYqj4X7A-bGqY_SMZ3Udoc76RxWB4XeEp6HNtY,190
|
57
|
+
judgeval/tracer/llm/providers.py,sha256=TFbT_X4Nl9Iu2Kzt11U3Va4rhfgvH2hesvgT18-_nsM,1487
|
58
|
+
judgeval/tracer/llm/llm_anthropic/__init__.py,sha256=HG0gIlTgaRt-Y0u1ERPQ19pUgb4YHkTh7tZQPeyR4oM,80
|
59
|
+
judgeval/tracer/llm/llm_anthropic/config.py,sha256=DUTkYjMejWLI8inFJ_Ih7vf7_aJFAiCyi1Oxls-ACGo,439
|
60
|
+
judgeval/tracer/llm/llm_anthropic/wrapper.py,sha256=4DzLqQcyVFkT5CB5BopjQef3mW4HPhTtWx1J7J2RGuA,22660
|
61
|
+
judgeval/tracer/llm/llm_google/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
62
|
+
judgeval/tracer/llm/llm_google/config.py,sha256=ENx0dq7s3bUOlSMSYvw-_Z2Aq9J7VEGiv5XuqE3CEKk,571
|
63
|
+
judgeval/tracer/llm/llm_google/wrapper.py,sha256=OozzlvmbZK0rWUUfX2yBE-LjGoGD4CHO_gMz9jOqEbE,15460
|
64
|
+
judgeval/tracer/llm/llm_groq/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
65
|
+
judgeval/tracer/llm/llm_groq/config.py,sha256=zKOOzGMtl0mL8FSyJAMvKUeogUS7aW7A8fbPk5yvcvI,442
|
66
|
+
judgeval/tracer/llm/llm_groq/wrapper.py,sha256=E5KekXQsW1DGb2AYUCgdYsiBKjh8bLzKVsGvQQIUVT8,17602
|
67
|
+
judgeval/tracer/llm/llm_openai/__init__.py,sha256=CyzwhY0-zmqWKlEno7JPBcvO7G_hI8dp6-_5_KEzFqg,74
|
68
|
+
judgeval/tracer/llm/llm_openai/config.py,sha256=vcWYsCA5Sg8kuKQ7amcdhXktb6l9db1i0twlYrtFok4,827
|
69
|
+
judgeval/tracer/llm/llm_openai/wrapper.py,sha256=AXKuUlR0JVlOsC17WulRwfrLPoMX7ffvc0GuhxFauJo,23338
|
70
|
+
judgeval/tracer/llm/llm_together/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
71
|
+
judgeval/tracer/llm/llm_together/config.py,sha256=XnRa2ZWE-ZFa1K7JiN7J1gteBW0Sdh9hEkn4R-xv8lY,590
|
72
|
+
judgeval/tracer/llm/llm_together/wrapper.py,sha256=vzlHLhkMxXIwYw0SefcYVzh6NBm63pxrqSsrORLanr0,17706
|
73
|
+
judgeval/tracer/processors/__init__.py,sha256=BdOOPOD1RfMI5YHW76DNPKR07EAev-JxoolZ3KaXNNU,7100
|
62
74
|
judgeval/trainer/__init__.py,sha256=h_DDVV7HFF7HUPAJFpt2d9wjqgnmEVcHxqZyB1k7pPQ,257
|
63
75
|
judgeval/trainer/config.py,sha256=sAAVBgeoFDJWYjGIgOvoQoiO0gtqNAOI6MHncwdN_mk,4292
|
64
|
-
judgeval/trainer/console.py,sha256=
|
76
|
+
judgeval/trainer/console.py,sha256=SvokkFEU-K1vLV4Rd1m6YJJ7HyYwTr4Azdzwx_JPZUY,4351
|
65
77
|
judgeval/trainer/trainable_model.py,sha256=T-Sioi_sXtfYlcu3lE0cd60PHs8DrYaZ-Kxb4h1nU04,8993
|
66
78
|
judgeval/trainer/trainer.py,sha256=FBhHq2YPooKADDCC_IEKex81L6a5quCmAMyl9mn3QLk,16675
|
67
79
|
judgeval/utils/async_utils.py,sha256=AF1xdu8Ao5GyhFvfaLOaKJHn1RISyXZ4U70UZe9zfBA,1083
|
68
|
-
judgeval/utils/decorators.py,sha256=rdqY1w0zNL6O6GU6Wdeo0-x5EgpFTEhU2vkgiWsRYdc,525
|
69
80
|
judgeval/utils/file_utils.py,sha256=vq-n5WZEZjVbZ5S9QTkW8nSH6Pvw-Jx0ttsQ1t0wnPQ,3140
|
70
81
|
judgeval/utils/guards.py,sha256=QBb6m6KElxdvt2bskLZCKh_zGHbBcqV-VfGzT63o3hY,807
|
71
|
-
judgeval/utils/meta.py,sha256=
|
82
|
+
judgeval/utils/meta.py,sha256=RAqZuvOlymqMwFoS0joBW_r65lcN9bY8BpNYHoytKps,773
|
72
83
|
judgeval/utils/serialize.py,sha256=QXR-8Nj5rqOrI9zLx0oRLdk6DW6Bc7j8eyF4zQ7PLxA,6256
|
73
84
|
judgeval/utils/testing.py,sha256=m5Nexv65tmfSj1XvAPK5Ear7aJ7w5xjDtZN0tLZ_RBk,2939
|
74
85
|
judgeval/utils/url.py,sha256=Shf0v3XcbaWpL0m1eGJEEO_z4TsQCnDB2Rl25OTUmiI,195
|
75
|
-
judgeval/utils/version_check.py,sha256=
|
76
|
-
judgeval
|
77
|
-
judgeval
|
78
|
-
judgeval
|
79
|
-
judgeval-0.
|
80
|
-
judgeval-0.
|
86
|
+
judgeval/utils/version_check.py,sha256=se4Ft8rjcl5u7fHMxSGQpka844V2AcZpOYl6StLWTio,1081
|
87
|
+
judgeval/utils/decorators/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
88
|
+
judgeval/utils/decorators/dont_throw.py,sha256=_m27SjtpUFXYegi0W6FICw5UrqQ49gjDTvtGs29zEbo,494
|
89
|
+
judgeval/utils/decorators/use_once.py,sha256=8mgj5VK9v08VOOWX2Bstc0CezNsOVUKMIv7N2R83E8s,288
|
90
|
+
judgeval-0.16.1.dist-info/METADATA,sha256=tkmel7oqIAY2FL78lf4hS9ZkSvPEzY0f6hyfS6QVHC4,11512
|
91
|
+
judgeval-0.16.1.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
92
|
+
judgeval-0.16.1.dist-info/entry_points.txt,sha256=-eoeD-oDLn4A7MSgeBS9Akwanf3_0r0cgEleBcIOjg0,46
|
93
|
+
judgeval-0.16.1.dist-info/licenses/LICENSE.md,sha256=tKmCg7k5QOmxPK19XMfzim04QiQJPmgIm0pAn55IJwk,11352
|
94
|
+
judgeval-0.16.1.dist-info/RECORD,,
|
@@ -1,21 +0,0 @@
|
|
1
|
-
from __future__ import annotations
|
2
|
-
|
3
|
-
HAS_GOOGLE_GENAI = False
|
4
|
-
google_genai_Client = None
|
5
|
-
google_genai_AsyncClient = None
|
6
|
-
|
7
|
-
try:
|
8
|
-
from google.genai import Client # type: ignore[import-untyped]
|
9
|
-
from google.genai.client import AsyncClient # type: ignore[import-untyped]
|
10
|
-
|
11
|
-
google_genai_Client = Client
|
12
|
-
google_genai_AsyncClient = AsyncClient
|
13
|
-
HAS_GOOGLE_GENAI = True
|
14
|
-
except ImportError:
|
15
|
-
pass
|
16
|
-
|
17
|
-
__all__ = [
|
18
|
-
"HAS_GOOGLE_GENAI",
|
19
|
-
"google_genai_Client",
|
20
|
-
"google_genai_AsyncClient",
|
21
|
-
]
|
@@ -1,20 +0,0 @@
|
|
1
|
-
from __future__ import annotations
|
2
|
-
|
3
|
-
HAS_GROQ = False
|
4
|
-
groq_Groq = None
|
5
|
-
groq_AsyncGroq = None
|
6
|
-
|
7
|
-
try:
|
8
|
-
from groq import Groq, AsyncGroq # type: ignore[import-untyped]
|
9
|
-
|
10
|
-
groq_Groq = Groq
|
11
|
-
groq_AsyncGroq = AsyncGroq
|
12
|
-
HAS_GROQ = True
|
13
|
-
except ImportError:
|
14
|
-
pass
|
15
|
-
|
16
|
-
__all__ = [
|
17
|
-
"HAS_GROQ",
|
18
|
-
"groq_Groq",
|
19
|
-
"groq_AsyncGroq",
|
20
|
-
]
|
@@ -1,20 +0,0 @@
|
|
1
|
-
from __future__ import annotations
|
2
|
-
|
3
|
-
HAS_TOGETHER = False
|
4
|
-
together_Together = None
|
5
|
-
together_AsyncTogether = None
|
6
|
-
|
7
|
-
try:
|
8
|
-
from together import Together, AsyncTogether # type: ignore[import-untyped]
|
9
|
-
|
10
|
-
together_Together = Together
|
11
|
-
together_AsyncTogether = AsyncTogether
|
12
|
-
HAS_TOGETHER = True
|
13
|
-
except ImportError:
|
14
|
-
pass
|
15
|
-
|
16
|
-
__all__ = [
|
17
|
-
"HAS_TOGETHER",
|
18
|
-
"together_Together",
|
19
|
-
"together_AsyncTogether",
|
20
|
-
]
|
@@ -1,158 +0,0 @@
|
|
1
|
-
Metadata-Version: 2.4
|
2
|
-
Name: judgeval
|
3
|
-
Version: 0.15.0
|
4
|
-
Summary: Judgeval Package
|
5
|
-
Project-URL: Homepage, https://github.com/JudgmentLabs/judgeval
|
6
|
-
Project-URL: Issues, https://github.com/JudgmentLabs/judgeval/issues
|
7
|
-
Author-email: Andrew Li <andrew@judgmentlabs.ai>, Alex Shan <alex@judgmentlabs.ai>, Joseph Camyre <joseph@judgmentlabs.ai>
|
8
|
-
License-Expression: Apache-2.0
|
9
|
-
License-File: LICENSE.md
|
10
|
-
Classifier: Operating System :: OS Independent
|
11
|
-
Classifier: Programming Language :: Python :: 3
|
12
|
-
Requires-Python: >=3.10
|
13
|
-
Requires-Dist: boto3>=1.40.11
|
14
|
-
Requires-Dist: click<8.2.0
|
15
|
-
Requires-Dist: dotenv
|
16
|
-
Requires-Dist: httpx>=0.28.1
|
17
|
-
Requires-Dist: litellm<1.75.0
|
18
|
-
Requires-Dist: opentelemetry-exporter-otlp>=1.36.0
|
19
|
-
Requires-Dist: opentelemetry-sdk>=1.36.0
|
20
|
-
Requires-Dist: orjson>=3.9.0
|
21
|
-
Requires-Dist: typer>=0.9.0
|
22
|
-
Provides-Extra: s3
|
23
|
-
Requires-Dist: boto3>=1.40.11; extra == 's3'
|
24
|
-
Provides-Extra: trainer
|
25
|
-
Requires-Dist: fireworks-ai>=0.19.18; extra == 'trainer'
|
26
|
-
Description-Content-Type: text/markdown
|
27
|
-
|
28
|
-
<div align="center">
|
29
|
-
|
30
|
-
<img src="assets/new_lightmode.svg#gh-light-mode-only" alt="Judgment Logo" width="400" />
|
31
|
-
<img src="assets/new_darkmode.svg#gh-dark-mode-only" alt="Judgment Logo" width="400" />
|
32
|
-
|
33
|
-
<br>
|
34
|
-
<div style="font-size: 1.5em;">
|
35
|
-
Enable self-learning agents with environment data and evals.
|
36
|
-
</div>
|
37
|
-
|
38
|
-
## [Docs](https://docs.judgmentlabs.ai/) • [Judgment Cloud](https://app.judgmentlabs.ai/register) • [Self-Host](https://docs.judgmentlabs.ai/documentation/self-hosting/get-started) • [Landing Page](https://judgmentlabs.ai/)
|
39
|
-
|
40
|
-
[Demo](https://www.youtube.com/watch?v=1S4LixpVbcc) • [Bug Reports](https://github.com/JudgmentLabs/judgeval/issues) • [Changelog](https://docs.judgmentlabs.ai/changelog/2025-04-21)
|
41
|
-
|
42
|
-
We're hiring! Join us in our mission to enable self-learning agents by providing the data and signals needed for monitoring and post-training.
|
43
|
-
|
44
|
-
[](https://x.com/JudgmentLabs)
|
45
|
-
[](https://www.linkedin.com/company/judgmentlabs)
|
46
|
-
[](https://discord.gg/tGVFf8UBUY)
|
47
|
-
|
48
|
-
<img src="assets/product_shot.png" alt="Judgment Platform" width="800" />
|
49
|
-
|
50
|
-
</div>
|
51
|
-
|
52
|
-
Judgeval offers **open-source tooling** for evaluating autonomous, stateful agents. It **provides runtime data from agent-environment interactions** for continuous learning and self-improvement.
|
53
|
-
|
54
|
-
## 🎬 See Judgeval in Action
|
55
|
-
|
56
|
-
**[Multi-Agent System](https://github.com/JudgmentLabs/judgment-cookbook/tree/main/cookbooks/agents/multi-agent) with complete observability:** (1) A multi-agent system spawns agents to research topics on the internet. (2) With just **3 lines of code**, Judgeval captures all environment responses across all agent tool calls for monitoring. (3) After completion, (4) export all interaction data to enable further environment-specific learning and optimization.
|
57
|
-
|
58
|
-
<table style="width: 100%; max-width: 800px; table-layout: fixed;">
|
59
|
-
<tr>
|
60
|
-
<td align="center" style="padding: 8px; width: 50%;">
|
61
|
-
<img src="assets/agent.gif" alt="Agent Demo" style="width: 100%; max-width: 350px; height: auto;" />
|
62
|
-
<br><strong>🤖 Agents Running</strong>
|
63
|
-
</td>
|
64
|
-
<td align="center" style="padding: 8px; width: 50%;">
|
65
|
-
<img src="assets/trace.gif" alt="Capturing Environment Data Demo" style="width: 100%; max-width: 350px; height: auto;" />
|
66
|
-
<br><strong>📊 Capturing Environment Data </strong>
|
67
|
-
</td>
|
68
|
-
</tr>
|
69
|
-
<tr>
|
70
|
-
<td align="center" style="padding: 8px; width: 50%;">
|
71
|
-
<img src="assets/document.gif" alt="Agent Completed Demo" style="width: 100%; max-width: 350px; height: auto;" />
|
72
|
-
<br><strong>✅ Agents Completed Running</strong>
|
73
|
-
</td>
|
74
|
-
<td align="center" style="padding: 8px; width: 50%;">
|
75
|
-
<img src="assets/data.gif" alt="Data Export Demo" style="width: 100%; max-width: 350px; height: auto;" />
|
76
|
-
<br><strong>📤 Exporting Agent Environment Data</strong>
|
77
|
-
</td>
|
78
|
-
</tr>
|
79
|
-
|
80
|
-
</table>
|
81
|
-
|
82
|
-
## 📋 Table of Contents
|
83
|
-
- [🛠️ Installation](#️-installation)
|
84
|
-
- [🏁 Quickstarts](#-quickstarts)
|
85
|
-
- [✨ Features](#-features)
|
86
|
-
- [🏢 Self-Hosting](#-self-hosting)
|
87
|
-
- [📚 Cookbooks](#-cookbooks)
|
88
|
-
- [💻 Development with Cursor](#-development-with-cursor)
|
89
|
-
|
90
|
-
## 🛠️ Installation
|
91
|
-
|
92
|
-
Get started with Judgeval by installing our SDK using pip:
|
93
|
-
|
94
|
-
```bash
|
95
|
-
pip install judgeval
|
96
|
-
```
|
97
|
-
|
98
|
-
Ensure you have your `JUDGMENT_API_KEY` and `JUDGMENT_ORG_ID` environment variables set to connect to the [Judgment Platform](https://app.judgmentlabs.ai/).
|
99
|
-
|
100
|
-
```bash
|
101
|
-
export JUDGMENT_API_KEY=...
|
102
|
-
export JUDGMENT_ORG_ID=...
|
103
|
-
```
|
104
|
-
|
105
|
-
**If you don't have keys, [create an account](https://app.judgmentlabs.ai/register) on the platform!**
|
106
|
-
|
107
|
-
|
108
|
-
## ✨ Features
|
109
|
-
|
110
|
-
| | |
|
111
|
-
|:---|:---:|
|
112
|
-
| <h3>🧪 Evals</h3>Build custom evaluators on top of your agents. Judgeval supports LLM-as-a-judge, manual labeling, and code-based evaluators that connect with our metric-tracking infrastructure. <br><br>**Useful for:**<br>• ⚠️ Unit-testing <br>• 🔬 A/B testing <br>• 🛡️ Online guardrails | <p align="center"><img src="assets/test.png" alt="Evaluation metrics" width="800"/></p> |
|
113
|
-
| <h3>📡 Monitoring</h3>Get Slack alerts for agent failures in production. Add custom hooks to address production regressions.<br><br> **Useful for:** <br>• 📉 Identifying degradation early <br>• 📈 Visualizing performance trends across agent versions and time | <p align="center"><img src="assets/errors.png" alt="Monitoring Dashboard" width="1200"/></p> |
|
114
|
-
| <h3>📊 Datasets</h3>Export environment interactions and test cases to datasets for scaled analysis and optimization. Move datasets to/from Parquet, S3, etc. <br><br>Run evals on datasets as unit tests or to A/B test different agent configurations, enabling continuous learning from production interactions. <br><br> **Useful for:**<br>• 🗃️ Agent environment interaction data for optimization<br>• 🔄 Scaled analysis for A/B tests | <p align="center"><img src="assets/datasets_preview_screenshot.png" alt="Dataset management" width="1200"/></p> |
|
115
|
-
|
116
|
-
## 🏢 Self-Hosting
|
117
|
-
|
118
|
-
Run Judgment on your own infrastructure: we provide comprehensive self-hosting capabilities that give you full control over the backend and data plane that Judgeval interfaces with.
|
119
|
-
|
120
|
-
### Key Features
|
121
|
-
* Deploy Judgment on your own AWS account
|
122
|
-
* Store data in your own Supabase instance
|
123
|
-
* Access Judgment through your own custom domain
|
124
|
-
|
125
|
-
### Getting Started
|
126
|
-
1. Check out our [self-hosting documentation](https://docs.judgmentlabs.ai/documentation/self-hosting/get-started) for detailed setup instructions, along with how your self-hosted instance can be accessed
|
127
|
-
2. Use the [Judgment CLI](https://docs.judgmentlabs.ai/documentation/developer-tools/judgment-cli/installation) to deploy your self-hosted environment
|
128
|
-
3. After your self-hosted instance is setup, make sure the `JUDGMENT_API_URL` environmental variable is set to your self-hosted backend endpoint
|
129
|
-
|
130
|
-
## 📚 Cookbooks
|
131
|
-
|
132
|
-
Have your own? We're happy to feature it if you create a PR or message us on [Discord](https://discord.gg/tGVFf8UBUY).
|
133
|
-
|
134
|
-
You can access our repo of cookbooks [here](https://github.com/JudgmentLabs/judgment-cookbook).
|
135
|
-
|
136
|
-
## 💻 Development with Cursor
|
137
|
-
Building agents and LLM workflows in Cursor works best when your coding assistant has the proper context about Judgment integration. The Cursor rules file contains the key information needed for your assistant to implement Judgment features effectively.
|
138
|
-
|
139
|
-
Refer to the official [documentation](https://docs.judgmentlabs.ai/documentation/developer-tools/cursor/cursor-rules) for access to the rules file and more information on integrating this rules file with your codebase.
|
140
|
-
|
141
|
-
## ⭐ Star Us on GitHub
|
142
|
-
|
143
|
-
If you find Judgeval useful, please consider giving us a star on GitHub! Your support helps us grow our community and continue improving the repository.
|
144
|
-
|
145
|
-
## ❤️ Contributors
|
146
|
-
|
147
|
-
There are many ways to contribute to Judgeval:
|
148
|
-
|
149
|
-
- Submit [bug reports](https://github.com/JudgmentLabs/judgeval/issues) and [feature requests](https://github.com/JudgmentLabs/judgeval/issues)
|
150
|
-
- Review the documentation and submit [Pull Requests](https://github.com/JudgmentLabs/judgeval/pulls) to improve it
|
151
|
-
- Speaking or writing about Judgment and letting us know!
|
152
|
-
|
153
|
-
<!-- Contributors collage -->
|
154
|
-
[](https://github.com/JudgmentLabs/judgeval/graphs/contributors)
|
155
|
-
|
156
|
-
---
|
157
|
-
|
158
|
-
Judgeval is created and maintained by [Judgment Labs](https://judgmentlabs.ai/).
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|