-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathagentsinsightsv2response.py
More file actions
88 lines (72 loc) · 3.49 KB
/
agentsinsightsv2response.py
File metadata and controls
88 lines (72 loc) · 3.49 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
from __future__ import annotations
from .agentsusagebydepartmentinsight import (
AgentsUsageByDepartmentInsight,
AgentsUsageByDepartmentInsightTypedDict,
)
from .agentusersinsight import AgentUsersInsight, AgentUsersInsightTypedDict
from .labeledcountinfo import LabeledCountInfo, LabeledCountInfoTypedDict
from .peragentinsight import PerAgentInsight, PerAgentInsightTypedDict
from glean.api_client.types import BaseModel
import pydantic
from typing import List, Optional
from typing_extensions import Annotated, NotRequired, TypedDict
class AgentsInsightsV2ResponseTypedDict(TypedDict):
monthly_active_users: NotRequired[int]
r"""Number of current Monthly Active Users, in the specified departments."""
weekly_active_users: NotRequired[int]
r"""Number of current Weekly Active Users, in the specified departments."""
monthly_active_user_timeseries: NotRequired[LabeledCountInfoTypedDict]
weekly_active_user_timeseries: NotRequired[LabeledCountInfoTypedDict]
daily_active_user_timeseries: NotRequired[LabeledCountInfoTypedDict]
shared_agents_count: NotRequired[int]
r"""Total number of shared agents."""
top_agents_insights: NotRequired[List[PerAgentInsightTypedDict]]
agents_usage_by_department_insights: NotRequired[
List[AgentsUsageByDepartmentInsightTypedDict]
]
agent_users_insights: NotRequired[List[AgentUsersInsightTypedDict]]
daily_agent_runs_timeseries: NotRequired[LabeledCountInfoTypedDict]
upvotes_timeseries: NotRequired[LabeledCountInfoTypedDict]
downvotes_timeseries: NotRequired[LabeledCountInfoTypedDict]
class AgentsInsightsV2Response(BaseModel):
monthly_active_users: Annotated[
Optional[int], pydantic.Field(alias="monthlyActiveUsers")
] = None
r"""Number of current Monthly Active Users, in the specified departments."""
weekly_active_users: Annotated[
Optional[int], pydantic.Field(alias="weeklyActiveUsers")
] = None
r"""Number of current Weekly Active Users, in the specified departments."""
monthly_active_user_timeseries: Annotated[
Optional[LabeledCountInfo], pydantic.Field(alias="monthlyActiveUserTimeseries")
] = None
weekly_active_user_timeseries: Annotated[
Optional[LabeledCountInfo], pydantic.Field(alias="weeklyActiveUserTimeseries")
] = None
daily_active_user_timeseries: Annotated[
Optional[LabeledCountInfo], pydantic.Field(alias="dailyActiveUserTimeseries")
] = None
shared_agents_count: Annotated[
Optional[int], pydantic.Field(alias="sharedAgentsCount")
] = None
r"""Total number of shared agents."""
top_agents_insights: Annotated[
Optional[List[PerAgentInsight]], pydantic.Field(alias="topAgentsInsights")
] = None
agents_usage_by_department_insights: Annotated[
Optional[List[AgentsUsageByDepartmentInsight]],
pydantic.Field(alias="agentsUsageByDepartmentInsights"),
] = None
agent_users_insights: Annotated[
Optional[List[AgentUsersInsight]], pydantic.Field(alias="agentUsersInsights")
] = None
daily_agent_runs_timeseries: Annotated[
Optional[LabeledCountInfo], pydantic.Field(alias="dailyAgentRunsTimeseries")
] = None
upvotes_timeseries: Annotated[
Optional[LabeledCountInfo], pydantic.Field(alias="upvotesTimeseries")
] = None
downvotes_timeseries: Annotated[
Optional[LabeledCountInfo], pydantic.Field(alias="downvotesTimeseries")
] = None