v2.8.0 (#616)
Co-authored-by: Kim-Adeline Miguel <51720070+kimadeline@users.noreply.github.com> Co-authored-by: Mathias Gesbert <mathias.gesbert@mistral.ai> Co-authored-by: Michel Thomazo <51709227+michelTho@users.noreply.github.com> Co-authored-by: Pierre Rossinès <pierre.rossines@mistral.ai> Co-authored-by: Mistral Vibe <vibe@mistral.ai>
This commit is contained in:
parent
95336528f6
commit
04305bd77c
68 changed files with 3473 additions and 1764 deletions
|
|
@ -157,6 +157,7 @@ class TelemetryClient:
|
|||
status: Literal["success", "failure", "skipped"],
|
||||
decision: ToolDecision | None,
|
||||
agent_profile_name: str,
|
||||
model: str,
|
||||
result: dict[str, Any] | None = None,
|
||||
) -> None:
|
||||
verdict_value = decision.verdict.value if decision else None
|
||||
|
|
@ -172,6 +173,7 @@ class TelemetryClient:
|
|||
"decision": verdict_value,
|
||||
"approval_type": approval_type_value,
|
||||
"agent_profile_name": agent_profile_name,
|
||||
"model": model,
|
||||
"nb_files_created": nb_files_created,
|
||||
"nb_files_modified": nb_files_modified,
|
||||
}
|
||||
|
|
@ -224,6 +226,22 @@ class TelemetryClient:
|
|||
"vibe.onboarding_api_key_added", {"version": __version__}
|
||||
)
|
||||
|
||||
def send_request_sent(
|
||||
self,
|
||||
*,
|
||||
model: str,
|
||||
nb_context_chars: int,
|
||||
nb_context_messages: int,
|
||||
nb_prompt_chars: int,
|
||||
) -> None:
|
||||
payload = {
|
||||
"model": model,
|
||||
"nb_context_chars": nb_context_chars,
|
||||
"nb_context_messages": nb_context_messages,
|
||||
"nb_prompt_chars": nb_prompt_chars,
|
||||
}
|
||||
self.send_telemetry_event("vibe.request_sent", payload)
|
||||
|
||||
def send_user_rating_feedback(self, rating: int, model: str) -> None:
|
||||
self.send_telemetry_event(
|
||||
"vibe.user_rating_feedback",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue