completion-kit 0.30.0 → 0.30.1
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.
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: f14de0f4359e143b54e738086c6d1d06f3aaec0dccca500c06c386ab77c3c21d
|
|
4
|
+
data.tar.gz: a49a8c7b87d9791aa354b2336feace574bca18f1b0a5107f6a2f18eaab2d20c3
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: dc07e95db38fe75a13315e4cd88cdf54196e2bc05a8c0f126dd95d46325371b7d13e1da9cd5f250afd367bce83f58f0b9d483479575018c073e831152a3bcabb
|
|
7
|
+
data.tar.gz: e1b53d35b7219c8d3bff7af707b859075c2ce4ccdeb7904be2c7cf3971efef716ac9f9c91f8e99e426713a5cd5255017f97aea169c4c8e68d86fc7e3cefeca58
|
|
@@ -95,7 +95,7 @@ module CompletionKit
|
|
|
95
95
|
},
|
|
96
96
|
"metrics_suggest_variants" => {
|
|
97
97
|
description: "Get AI suggestions to improve an LLM judge that disagrees with people. It sends the judge's current instruction and rubric, plus up to 8 recent responses where a person disagreed with the judge's score and up to 6 that a person marked borderline (each input and output cut to 200 characters), to your own model provider. The model is asked for rewrites of the instruction, the rubric or both that close the gap. Each rewrite is saved as a draft metric version with source \"suggestion\", and earlier suggestion drafts are kept. The live judge does not change until you publish a draft with metric_versions_publish. Nothing tests a draft before you publish it. Once it is live and people have recorded verdicts on it with agreements_create, judges_compare shows whether it agrees with people more often than the version it replaced. Returns the saved drafts. It works best after you have recorded disagreements with agreements_create. Checks are refused, because they are exact and have nothing to suggest. count defaults to 1 and is capped at 3. model picks the model that writes the rewrites and defaults to your judge model. The call uses your provider key and runs while you wait. It fails with an error if no judging model is set up or the model you name is unknown. If the model's reply can't be read, nothing is saved and you get a \"no parseable variants\" error. A call your provider refuses, such as one with a bad key, usually ends in that same error.",
|
|
98
|
-
annotations: Base::
|
|
98
|
+
annotations: Base::OPEN_WORLD_ADDITIVE,
|
|
99
99
|
inputSchema: {
|
|
100
100
|
type: "object",
|
|
101
101
|
properties: {
|
|
@@ -58,7 +58,7 @@ module CompletionKit
|
|
|
58
58
|
},
|
|
59
59
|
"prompts_suggest_improvement" => {
|
|
60
60
|
description: "Suggest an improved version of a prompt, grounded in a run's test results and judge feedback. It reads up to 20 of the run's responses with their scores and reviews, then asks the prompt's own model, on your saved provider key, for reasoning plus a rewritten template that keeps the {{variables}}. It then tests the rewrite on up to 30 of the run's judge-scored rows and scores the new answers with the run's LLM-judge metrics and judge model. Returns suggestion_id, prompt_id, reasoning, suggested_template, original_template, validation (before and after averages and how many rows improved, regressed or stayed the same) and net_negative, which is true when the rewrite's average score fell or more rows got worse than better. If validation.tested is 0, nothing was checked and net_negative is false. That happens when the run has no LLM-judge metrics, has no judge-scored rows with both input and output, or every test call failed. It saves the result as a Suggestion. The prompt itself is not changed, so pass suggested_template to prompts_update to save it as a draft version. Requires a run that has a prompt (not a scoring-only run). Each call can make dozens of model calls on your saved provider keys and can take a while.",
|
|
61
|
-
annotations: Base::
|
|
61
|
+
annotations: Base::OPEN_WORLD_ADDITIVE,
|
|
62
62
|
inputSchema: {
|
|
63
63
|
type: "object",
|
|
64
64
|
properties: {run_id: {type: "integer", description: "The run whose results ground the improvement."}},
|
|
@@ -83,25 +83,25 @@ module CompletionKit
|
|
|
83
83
|
},
|
|
84
84
|
"runs_generate" => {
|
|
85
85
|
description: "Start a test run so it produces and scores responses. It is required for every run, including score-only runs (no prompt): it generates responses with the prompt when there is one, and otherwise copies the graded dataset column and grades it. In a prompt run each dataset row goes to the prompt's model, and in either kind of run each LLM-judged metric then scores the result with the run's judge model. LLM-judged metrics are skipped when the run has no judge model. These model calls go to the providers you configured, which may charge for them; checks run without a provider call. The work runs in the background, so poll runs_get until status is completed or failed, and do not call this tool again to check progress. Only a pending or failed run can start, and any refused start marks the run as failed. Calling it on a running or completed run therefore does not start it but marks that run as failed, and a second call would then delete its results. Restarting a failed run first deletes its earlier responses, their scores and any human verdicts on them. For a completed run use runs_rerun, runs_retry_failures or runs_regrade instead. It returns the run with its progress, or the reason it could not start, such as a missing provider key or an empty dataset.",
|
|
86
|
-
annotations: Base::
|
|
86
|
+
annotations: Base::OPEN_WORLD_DESTRUCTIVE,
|
|
87
87
|
inputSchema: {type: "object", properties: {id: {type: "integer"}}, required: ["id"]},
|
|
88
88
|
handler: :generate
|
|
89
89
|
},
|
|
90
90
|
"runs_regrade" => {
|
|
91
91
|
description: "Re-score a test run's existing responses with its currently attached metrics, without regenerating. Use it after attaching or editing metrics on an already-generated run. It first clears every existing score and judge comment on the run's succeeded responses, including scores for metrics no longer attached, so the earlier scores are lost. If the run has checks but no judge model, its LLM-judged scores are cleared and not replaced. Human verdicts already recorded on the run are kept even though people gave them on the earlier scores, and agreement stats then pair them with the new scores. LLM-judged metrics call your judge model's provider; checks do not. The work runs in the background, so poll runs_get for progress. It returns the run, or an error when no configured provider serves the judge model, or when there is nothing to re-grade because the run has no succeeded responses, no metrics, or only LLM-judged metrics and no working judge model.",
|
|
92
|
-
annotations: Base::
|
|
92
|
+
annotations: Base::OPEN_WORLD_DESTRUCTIVE,
|
|
93
93
|
inputSchema: {type: "object", properties: {id: {type: "integer"}}, required: ["id"]},
|
|
94
94
|
handler: :regrade
|
|
95
95
|
},
|
|
96
96
|
"runs_rerun" => {
|
|
97
97
|
description: "Copy a test run and start the copy, with the same prompt version, dataset, metrics, judge model, settings and tags, under a new automatic name. Use it when the judge changed and you want a clean run instead of mixing versions, or to repeat a test. The original run and its scores stay untouched. The copy runs in the background and calls your model providers the same way runs_generate does. To test a different prompt version, create a new run with runs_create instead. It returns the new run; poll runs_get with its id for progress. If the prompt's model or the judge model has no configured provider, or the dataset no longer has a column the run needs, it returns an error and creates nothing. If the copy is created but cannot start, for example because the dataset is empty, it returns the reason and the copy stays as a failed run.",
|
|
98
|
-
annotations: Base::
|
|
98
|
+
annotations: Base::OPEN_WORLD_ADDITIVE,
|
|
99
99
|
inputSchema: {type: "object", properties: {id: {type: "integer"}}, required: ["id"]},
|
|
100
100
|
handler: :rerun
|
|
101
101
|
},
|
|
102
102
|
"runs_retry_failures" => {
|
|
103
103
|
description: "Retry only the parts of a test run that failed, such as provider timeouts, rate limits or judge errors. Failed responses are generated again and failed scores are retried, while responses and scores that succeeded are left alone; optionally limit it to specific response ids via \"only\". It is refused when the judge has changed since the run executed, meaning a metric on the run now has a newer version than the one that scored it, because a retry would mix versions in the same run; use runs_rerun instead. The retries run in the background and call your model providers, except for checks. It returns the run with its progress, or the run unchanged when nothing failed.",
|
|
104
|
-
annotations: Base::
|
|
104
|
+
annotations: Base::OPEN_WORLD_ADDITIVE,
|
|
105
105
|
inputSchema: {type: "object", properties: {id: {type: "integer"}, only: {type: "array", items: {type: "integer"}}}, required: ["id"]},
|
|
106
106
|
handler: :retry_failures
|
|
107
107
|
}
|