anthropic 1.77.1 → 1.78.0
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 +4 -4
- data/CHANGELOG.md +7 -0
- data/README.md +1 -1
- data/lib/anthropic/internal/stream.rb +1 -1
- data/lib/anthropic/models/beta/agent_create_params.rb +3 -3
- data/lib/anthropic/models/beta/agent_update_params.rb +3 -3
- data/lib/anthropic/models/beta/beta_managed_agents_agent.rb +3 -3
- data/lib/anthropic/models/beta/beta_managed_agents_multiagent.rb +43 -73
- data/lib/anthropic/models/beta/beta_managed_agents_multiagent20261001.rb +46 -0
- data/lib/anthropic/models/beta/beta_managed_agents_multiagent20261001_params.rb +67 -0
- data/lib/anthropic/models/beta/beta_managed_agents_multiagent_advisor.rb +57 -0
- data/lib/anthropic/models/beta/beta_managed_agents_multiagent_advisor_disabled.rb +21 -0
- data/lib/anthropic/models/beta/beta_managed_agents_multiagent_advisor_disabled_params.rb +21 -0
- data/lib/anthropic/models/beta/beta_managed_agents_multiagent_advisor_enabled.rb +29 -0
- data/lib/anthropic/models/beta/beta_managed_agents_multiagent_advisor_enabled_params.rb +34 -0
- data/lib/anthropic/models/beta/beta_managed_agents_multiagent_advisor_params.rb +61 -0
- data/lib/anthropic/models/beta/beta_managed_agents_multiagent_inline_agents.rb +57 -0
- data/lib/anthropic/models/beta/beta_managed_agents_multiagent_inline_agents_disabled.rb +21 -0
- data/lib/anthropic/models/beta/beta_managed_agents_multiagent_inline_agents_disabled_params.rb +22 -0
- data/lib/anthropic/models/beta/beta_managed_agents_multiagent_inline_agents_enabled.rb +21 -0
- data/lib/anthropic/models/beta/beta_managed_agents_multiagent_inline_agents_enabled_params.rb +22 -0
- data/lib/anthropic/models/beta/beta_managed_agents_multiagent_inline_agents_params.rb +57 -0
- data/lib/anthropic/models/beta/beta_managed_agents_multiagent_params.rb +44 -26
- data/lib/anthropic/models/beta/beta_managed_agents_multiagent_predefined_agent_params.rb +27 -0
- data/lib/anthropic/models/beta/beta_managed_agents_multiagent_subagents.rb +63 -0
- data/lib/anthropic/models/beta/beta_managed_agents_multiagent_subagents_disabled.rb +21 -0
- data/lib/anthropic/models/beta/beta_managed_agents_multiagent_subagents_disabled_params.rb +22 -0
- data/lib/anthropic/models/beta/beta_managed_agents_multiagent_subagents_enabled.rb +44 -0
- data/lib/anthropic/models/beta/beta_managed_agents_multiagent_subagents_enabled_params.rb +55 -0
- data/lib/anthropic/models/beta/beta_managed_agents_multiagent_subagents_params.rb +63 -0
- data/lib/anthropic/models/beta/beta_managed_agents_multiagent_workflows.rb +63 -0
- data/lib/anthropic/models/beta/beta_managed_agents_multiagent_workflows_disabled.rb +21 -0
- data/lib/anthropic/models/beta/beta_managed_agents_multiagent_workflows_disabled_params.rb +22 -0
- data/lib/anthropic/models/beta/beta_managed_agents_multiagent_workflows_enabled.rb +43 -0
- data/lib/anthropic/models/beta/beta_managed_agents_multiagent_workflows_enabled_params.rb +55 -0
- data/lib/anthropic/models/beta/beta_managed_agents_multiagent_workflows_params.rb +63 -0
- data/lib/anthropic/models/beta/beta_managed_agents_session_agent.rb +3 -7
- data/lib/anthropic/models/beta/beta_managed_agents_session_multiagent.rb +63 -0
- data/lib/anthropic/models/beta/beta_managed_agents_session_multiagent20261001.rb +46 -0
- data/lib/anthropic/models/beta/beta_managed_agents_session_multiagent_subagents.rb +63 -0
- data/lib/anthropic/models/beta/beta_managed_agents_session_multiagent_subagents_enabled.rb +45 -0
- data/lib/anthropic/models/beta/beta_managed_agents_session_multiagent_workflows.rb +63 -0
- data/lib/anthropic/models/beta/beta_managed_agents_session_multiagent_workflows_enabled.rb +44 -0
- data/lib/anthropic/models/beta/organization/analytics/artifact_list_params.rb +12 -10
- data/lib/anthropic/models/beta/organization/analytics/connector_list_params.rb +8 -6
- data/lib/anthropic/models/beta/organization/analytics/plugin_list_params.rb +15 -12
- data/lib/anthropic/models/beta/organization/analytics/skill_list_params.rb +10 -8
- data/lib/anthropic/models/beta/organization/analytics/user_list_params.rb +8 -4
- data/lib/anthropic/models/beta/organization/beta_analytics_artifact_activity.rb +9 -7
- data/lib/anthropic/models/beta/organization/beta_analytics_chat_cowork_unified_chat_metrics.rb +142 -0
- data/lib/anthropic/models/beta/organization/beta_analytics_chat_cowork_unified_sessions_metrics.rb +186 -0
- data/lib/anthropic/models/beta/organization/beta_analytics_connector_activity.rb +59 -8
- data/lib/anthropic/models/beta/organization/beta_analytics_connector_chat_cowork_unified_chat_metrics.rb +30 -0
- data/lib/anthropic/models/beta/organization/beta_analytics_connector_chat_cowork_unified_sessions_metrics.rb +30 -0
- data/lib/anthropic/models/beta/organization/beta_analytics_cost_bucketed_result.rb +7 -3
- data/lib/anthropic/models/beta/organization/beta_analytics_cost_users_item.rb +7 -3
- data/lib/anthropic/models/beta/organization/beta_analytics_plugin_activity.rb +52 -12
- data/lib/anthropic/models/beta/organization/beta_analytics_product_filter.rb +5 -1
- data/lib/anthropic/models/beta/organization/beta_analytics_project_activity.rb +9 -7
- data/lib/anthropic/models/beta/organization/beta_analytics_single_day_activity_summary.rb +31 -1
- data/lib/anthropic/models/beta/organization/beta_analytics_skill_activity.rb +57 -8
- data/lib/anthropic/models/beta/organization/beta_analytics_skill_chat_cowork_unified_chat_metrics.rb +30 -0
- data/lib/anthropic/models/beta/organization/beta_analytics_skill_chat_cowork_unified_sessions_metrics.rb +30 -0
- data/lib/anthropic/models/beta/organization/beta_analytics_usage_bucketed_result.rb +7 -3
- data/lib/anthropic/models/beta/organization/beta_analytics_usage_users_item.rb +7 -3
- data/lib/anthropic/models/beta/organization/beta_analytics_user_activity.rb +44 -1
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_inline_agent.rb +189 -0
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_max_workflow_runs_workflow_run_error.rb +35 -0
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_program_workflow_run_error.rb +34 -0
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_session_event.rb +61 -5
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_session_event_type.rb +7 -0
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_session_thread.rb +21 -6
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_session_thread_created_event.rb +14 -1
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_stream_session_events.rb +61 -5
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_stream_session_thread_events.rb +61 -5
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_thread_limit_workflow_run_error.rb +34 -0
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_timeout_workflow_run_error.rb +34 -0
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_unknown_workflow_run_error.rb +34 -0
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_workflow_run_created_event.rb +79 -0
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_workflow_run_error.rb +83 -0
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_workflow_run_error_event.rb +60 -0
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_workflow_run_phase.rb +43 -0
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_workflow_run_phase_ended_event.rb +70 -0
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_workflow_run_phase_started_event.rb +59 -0
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_workflow_run_result.rb +63 -0
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_workflow_run_result_completed.rb +22 -0
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_workflow_run_result_error.rb +29 -0
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_workflow_run_result_stopped.rb +21 -0
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_workflow_run_status_ended_event.rb +59 -0
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_workflow_run_status_idle_event.rb +52 -0
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_workflow_run_status_running_event.rb +52 -0
- data/lib/anthropic/models/beta/sessions/thread_list_params.rb +13 -1
- data/lib/anthropic/resources/beta/agents.rb +2 -2
- data/lib/anthropic/resources/beta/sessions/events.rb +2 -2
- data/lib/anthropic/resources/beta/sessions/threads/events.rb +2 -2
- data/lib/anthropic/resources/beta/sessions/threads.rb +4 -2
- data/lib/anthropic/version.rb +1 -1
- data/lib/anthropic.rb +58 -0
- data/rbi/anthropic/models/beta/agent_create_params.rbi +18 -13
- data/rbi/anthropic/models/beta/agent_update_params.rbi +18 -13
- data/rbi/anthropic/models/beta/beta_managed_agents_agent.rbi +13 -10
- data/rbi/anthropic/models/beta/beta_managed_agents_multiagent.rbi +63 -137
- data/rbi/anthropic/models/beta/beta_managed_agents_multiagent20261001.rbi +94 -0
- data/rbi/anthropic/models/beta/beta_managed_agents_multiagent20261001_params.rbi +142 -0
- data/rbi/anthropic/models/beta/beta_managed_agents_multiagent_advisor.rbi +85 -0
- data/rbi/anthropic/models/beta/beta_managed_agents_multiagent_advisor_disabled.rbi +32 -0
- data/rbi/anthropic/models/beta/beta_managed_agents_multiagent_advisor_disabled_params.rbi +32 -0
- data/rbi/anthropic/models/beta/beta_managed_agents_multiagent_advisor_enabled.rbi +40 -0
- data/rbi/anthropic/models/beta/beta_managed_agents_multiagent_advisor_enabled_params.rbi +42 -0
- data/rbi/anthropic/models/beta/beta_managed_agents_multiagent_advisor_params.rbi +86 -0
- data/rbi/anthropic/models/beta/beta_managed_agents_multiagent_coordinator.rbi +4 -10
- data/rbi/anthropic/models/beta/beta_managed_agents_multiagent_inline_agents.rbi +82 -0
- data/rbi/anthropic/models/beta/beta_managed_agents_multiagent_inline_agents_disabled.rbi +32 -0
- data/rbi/anthropic/models/beta/beta_managed_agents_multiagent_inline_agents_disabled_params.rbi +32 -0
- data/rbi/anthropic/models/beta/beta_managed_agents_multiagent_inline_agents_enabled.rbi +32 -0
- data/rbi/anthropic/models/beta/beta_managed_agents_multiagent_inline_agents_enabled_params.rbi +32 -0
- data/rbi/anthropic/models/beta/beta_managed_agents_multiagent_inline_agents_params.rbi +82 -0
- data/rbi/anthropic/models/beta/beta_managed_agents_multiagent_params.rbi +81 -79
- data/rbi/anthropic/models/beta/beta_managed_agents_multiagent_predefined_agent_params.rbi +36 -0
- data/rbi/anthropic/models/beta/beta_managed_agents_multiagent_subagents.rbi +95 -0
- data/rbi/anthropic/models/beta/beta_managed_agents_multiagent_subagents_disabled.rbi +32 -0
- data/rbi/anthropic/models/beta/beta_managed_agents_multiagent_subagents_disabled_params.rbi +32 -0
- data/rbi/anthropic/models/beta/beta_managed_agents_multiagent_subagents_enabled.rbi +79 -0
- data/rbi/anthropic/models/beta/beta_managed_agents_multiagent_subagents_enabled_params.rbi +122 -0
- data/rbi/anthropic/models/beta/beta_managed_agents_multiagent_subagents_params.rbi +107 -0
- data/rbi/anthropic/models/beta/beta_managed_agents_multiagent_workflows.rbi +94 -0
- data/rbi/anthropic/models/beta/beta_managed_agents_multiagent_workflows_disabled.rbi +32 -0
- data/rbi/anthropic/models/beta/beta_managed_agents_multiagent_workflows_disabled_params.rbi +32 -0
- data/rbi/anthropic/models/beta/beta_managed_agents_multiagent_workflows_enabled.rbi +77 -0
- data/rbi/anthropic/models/beta/beta_managed_agents_multiagent_workflows_enabled_params.rbi +121 -0
- data/rbi/anthropic/models/beta/beta_managed_agents_multiagent_workflows_params.rbi +106 -0
- data/rbi/anthropic/models/beta/beta_managed_agents_session_agent.rbi +7 -14
- data/rbi/anthropic/models/beta/beta_managed_agents_session_multiagent.rbi +112 -0
- data/rbi/anthropic/models/beta/beta_managed_agents_session_multiagent20261001.rbi +94 -0
- data/rbi/anthropic/models/beta/beta_managed_agents_session_multiagent_subagents.rbi +97 -0
- data/rbi/anthropic/models/beta/beta_managed_agents_session_multiagent_subagents_enabled.rbi +81 -0
- data/rbi/anthropic/models/beta/beta_managed_agents_session_multiagent_workflows.rbi +96 -0
- data/rbi/anthropic/models/beta/beta_managed_agents_session_multiagent_workflows_enabled.rbi +79 -0
- data/rbi/anthropic/models/beta/organization/analytics/artifact_list_params.rbi +24 -20
- data/rbi/anthropic/models/beta/organization/analytics/connector_list_params.rbi +16 -12
- data/rbi/anthropic/models/beta/organization/analytics/plugin_list_params.rbi +30 -24
- data/rbi/anthropic/models/beta/organization/analytics/skill_list_params.rbi +20 -16
- data/rbi/anthropic/models/beta/organization/analytics/user_list_params.rbi +16 -8
- data/rbi/anthropic/models/beta/organization/beta_analytics_artifact_activity.rbi +18 -14
- data/rbi/anthropic/models/beta/organization/beta_analytics_chat_cowork_unified_chat_metrics.rbi +189 -0
- data/rbi/anthropic/models/beta/organization/beta_analytics_chat_cowork_unified_sessions_metrics.rbi +236 -0
- data/rbi/anthropic/models/beta/organization/beta_analytics_connector_activity.rbi +136 -14
- data/rbi/anthropic/models/beta/organization/beta_analytics_connector_chat_cowork_unified_chat_metrics.rbi +50 -0
- data/rbi/anthropic/models/beta/organization/beta_analytics_connector_chat_cowork_unified_sessions_metrics.rbi +50 -0
- data/rbi/anthropic/models/beta/organization/beta_analytics_cost_bucketed_result.rbi +14 -6
- data/rbi/anthropic/models/beta/organization/beta_analytics_cost_users_item.rbi +14 -6
- data/rbi/anthropic/models/beta/organization/beta_analytics_plugin_activity.rbi +99 -18
- data/rbi/anthropic/models/beta/organization/beta_analytics_product_filter.rbi +9 -1
- data/rbi/anthropic/models/beta/organization/beta_analytics_project_activity.rbi +18 -14
- data/rbi/anthropic/models/beta/organization/beta_analytics_single_day_activity_summary.rbi +38 -0
- data/rbi/anthropic/models/beta/organization/beta_analytics_skill_activity.rbi +136 -14
- data/rbi/anthropic/models/beta/organization/beta_analytics_skill_chat_cowork_unified_chat_metrics.rbi +50 -0
- data/rbi/anthropic/models/beta/organization/beta_analytics_skill_chat_cowork_unified_sessions_metrics.rbi +50 -0
- data/rbi/anthropic/models/beta/organization/beta_analytics_usage_bucketed_result.rbi +14 -6
- data/rbi/anthropic/models/beta/organization/beta_analytics_usage_users_item.rbi +14 -6
- data/rbi/anthropic/models/beta/organization/beta_analytics_user_activity.rbi +113 -0
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_inline_agent.rbi +325 -0
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_max_workflow_runs_workflow_run_error.rbi +44 -0
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_program_workflow_run_error.rbi +43 -0
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_session_event.rbi +92 -18
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_session_event_type.rbi +35 -0
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_session_thread.rbi +23 -5
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_session_thread_created_event.rbi +13 -3
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_stream_session_events.rbi +92 -18
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_stream_session_thread_events.rbi +92 -18
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_thread_limit_workflow_run_error.rbi +43 -0
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_timeout_workflow_run_error.rbi +43 -0
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_unknown_workflow_run_error.rbi +43 -0
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_workflow_run_created_event.rbi +111 -0
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_workflow_run_error.rbi +105 -0
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_workflow_run_error_event.rbi +91 -0
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_workflow_run_phase.rbi +59 -0
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_workflow_run_phase_ended_event.rbi +90 -0
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_workflow_run_phase_started_event.rbi +79 -0
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_workflow_run_result.rbi +97 -0
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_workflow_run_result_completed.rbi +32 -0
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_workflow_run_result_error.rbi +63 -0
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_workflow_run_result_stopped.rbi +31 -0
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_workflow_run_status_ended_event.rbi +88 -0
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_workflow_run_status_idle_event.rbi +71 -0
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_workflow_run_status_running_event.rbi +71 -0
- data/rbi/anthropic/models/beta/sessions/thread_list_params.rbi +38 -0
- data/rbi/anthropic/resources/beta/agents.rbi +8 -2
- data/rbi/anthropic/resources/beta/organization/analytics/artifacts.rbi +12 -10
- data/rbi/anthropic/resources/beta/organization/analytics/connectors.rbi +8 -6
- data/rbi/anthropic/resources/beta/organization/analytics/plugins.rbi +15 -12
- data/rbi/anthropic/resources/beta/organization/analytics/skills.rbi +10 -8
- data/rbi/anthropic/resources/beta/organization/analytics/users.rbi +8 -4
- data/rbi/anthropic/resources/beta/sessions/threads.rbi +9 -0
- data/sig/anthropic/models/beta/agent_create_params.rbs +4 -4
- data/sig/anthropic/models/beta/agent_update_params.rbs +4 -4
- data/sig/anthropic/models/beta/beta_managed_agents_agent.rbs +4 -4
- data/sig/anthropic/models/beta/beta_managed_agents_multiagent.rbs +29 -59
- data/sig/anthropic/models/beta/beta_managed_agents_multiagent20261001.rbs +39 -0
- data/sig/anthropic/models/beta/beta_managed_agents_multiagent20261001_params.rbs +39 -0
- data/sig/anthropic/models/beta/beta_managed_agents_multiagent_advisor.rbs +42 -0
- data/sig/anthropic/models/beta/beta_managed_agents_multiagent_advisor_disabled.rbs +17 -0
- data/sig/anthropic/models/beta/beta_managed_agents_multiagent_advisor_disabled_params.rbs +18 -0
- data/sig/anthropic/models/beta/beta_managed_agents_multiagent_advisor_enabled.rbs +20 -0
- data/sig/anthropic/models/beta/beta_managed_agents_multiagent_advisor_enabled_params.rbs +20 -0
- data/sig/anthropic/models/beta/beta_managed_agents_multiagent_advisor_params.rbs +42 -0
- data/sig/anthropic/models/beta/beta_managed_agents_multiagent_inline_agents.rbs +40 -0
- data/sig/anthropic/models/beta/beta_managed_agents_multiagent_inline_agents_disabled.rbs +18 -0
- data/sig/anthropic/models/beta/beta_managed_agents_multiagent_inline_agents_disabled_params.rbs +18 -0
- data/sig/anthropic/models/beta/beta_managed_agents_multiagent_inline_agents_enabled.rbs +18 -0
- data/sig/anthropic/models/beta/beta_managed_agents_multiagent_inline_agents_enabled_params.rbs +18 -0
- data/sig/anthropic/models/beta/beta_managed_agents_multiagent_inline_agents_params.rbs +40 -0
- data/sig/anthropic/models/beta/beta_managed_agents_multiagent_params.rbs +29 -20
- data/sig/anthropic/models/beta/beta_managed_agents_multiagent_predefined_agent_params.rbs +18 -0
- data/sig/anthropic/models/beta/beta_managed_agents_multiagent_subagents.rbs +44 -0
- data/sig/anthropic/models/beta/beta_managed_agents_multiagent_subagents_disabled.rbs +18 -0
- data/sig/anthropic/models/beta/beta_managed_agents_multiagent_subagents_disabled_params.rbs +18 -0
- data/sig/anthropic/models/beta/beta_managed_agents_multiagent_subagents_enabled.rbs +34 -0
- data/sig/anthropic/models/beta/beta_managed_agents_multiagent_subagents_enabled_params.rbs +34 -0
- data/sig/anthropic/models/beta/beta_managed_agents_multiagent_subagents_params.rbs +44 -0
- data/sig/anthropic/models/beta/beta_managed_agents_multiagent_workflows.rbs +44 -0
- data/sig/anthropic/models/beta/beta_managed_agents_multiagent_workflows_disabled.rbs +18 -0
- data/sig/anthropic/models/beta/beta_managed_agents_multiagent_workflows_disabled_params.rbs +18 -0
- data/sig/anthropic/models/beta/beta_managed_agents_multiagent_workflows_enabled.rbs +34 -0
- data/sig/anthropic/models/beta/beta_managed_agents_multiagent_workflows_enabled_params.rbs +34 -0
- data/sig/anthropic/models/beta/beta_managed_agents_multiagent_workflows_params.rbs +44 -0
- data/sig/anthropic/models/beta/beta_managed_agents_session_agent.rbs +4 -4
- data/sig/anthropic/models/beta/beta_managed_agents_session_multiagent.rbs +48 -0
- data/sig/anthropic/models/beta/beta_managed_agents_session_multiagent20261001.rbs +39 -0
- data/sig/anthropic/models/beta/beta_managed_agents_session_multiagent_subagents.rbs +44 -0
- data/sig/anthropic/models/beta/beta_managed_agents_session_multiagent_subagents_enabled.rbs +34 -0
- data/sig/anthropic/models/beta/beta_managed_agents_session_multiagent_workflows.rbs +44 -0
- data/sig/anthropic/models/beta/beta_managed_agents_session_multiagent_workflows_enabled.rbs +34 -0
- data/sig/anthropic/models/beta/organization/beta_analytics_chat_cowork_unified_chat_metrics.rbs +79 -0
- data/sig/anthropic/models/beta/organization/beta_analytics_chat_cowork_unified_sessions_metrics.rbs +104 -0
- data/sig/anthropic/models/beta/organization/beta_analytics_connector_activity.rbs +27 -0
- data/sig/anthropic/models/beta/organization/beta_analytics_connector_chat_cowork_unified_chat_metrics.rbs +22 -0
- data/sig/anthropic/models/beta/organization/beta_analytics_connector_chat_cowork_unified_sessions_metrics.rbs +20 -0
- data/sig/anthropic/models/beta/organization/beta_analytics_plugin_activity.rbs +18 -0
- data/sig/anthropic/models/beta/organization/beta_analytics_product_filter.rbs +2 -0
- data/sig/anthropic/models/beta/organization/beta_analytics_single_day_activity_summary.rbs +15 -0
- data/sig/anthropic/models/beta/organization/beta_analytics_skill_activity.rbs +27 -0
- data/sig/anthropic/models/beta/organization/beta_analytics_skill_chat_cowork_unified_chat_metrics.rbs +20 -0
- data/sig/anthropic/models/beta/organization/beta_analytics_skill_chat_cowork_unified_sessions_metrics.rbs +18 -0
- data/sig/anthropic/models/beta/organization/beta_analytics_user_activity.rbs +27 -0
- data/sig/anthropic/models/beta/sessions/beta_managed_agents_inline_agent.rbs +152 -0
- data/sig/anthropic/models/beta/sessions/beta_managed_agents_max_workflow_runs_workflow_run_error.rbs +23 -0
- data/sig/anthropic/models/beta/sessions/beta_managed_agents_program_workflow_run_error.rbs +20 -0
- data/sig/anthropic/models/beta/sessions/beta_managed_agents_session_event.rbs +85 -5
- data/sig/anthropic/models/beta/sessions/beta_managed_agents_session_event_type.rbs +14 -0
- data/sig/anthropic/models/beta/sessions/beta_managed_agents_session_thread.rbs +25 -6
- data/sig/anthropic/models/beta/sessions/beta_managed_agents_session_thread_created_event.rbs +8 -3
- data/sig/anthropic/models/beta/sessions/beta_managed_agents_stream_session_events.rbs +85 -5
- data/sig/anthropic/models/beta/sessions/beta_managed_agents_stream_session_thread_events.rbs +85 -5
- data/sig/anthropic/models/beta/sessions/beta_managed_agents_thread_limit_workflow_run_error.rbs +20 -0
- data/sig/anthropic/models/beta/sessions/beta_managed_agents_timeout_workflow_run_error.rbs +20 -0
- data/sig/anthropic/models/beta/sessions/beta_managed_agents_unknown_workflow_run_error.rbs +20 -0
- data/sig/anthropic/models/beta/sessions/beta_managed_agents_workflow_run_created_event.rbs +54 -0
- data/sig/anthropic/models/beta/sessions/beta_managed_agents_workflow_run_error.rbs +66 -0
- data/sig/anthropic/models/beta/sessions/beta_managed_agents_workflow_run_error_event.rbs +44 -0
- data/sig/anthropic/models/beta/sessions/beta_managed_agents_workflow_run_phase.rbs +26 -0
- data/sig/anthropic/models/beta/sessions/beta_managed_agents_workflow_run_phase_ended_event.rbs +49 -0
- data/sig/anthropic/models/beta/sessions/beta_managed_agents_workflow_run_phase_started_event.rbs +44 -0
- data/sig/anthropic/models/beta/sessions/beta_managed_agents_workflow_run_result.rbs +47 -0
- data/sig/anthropic/models/beta/sessions/beta_managed_agents_workflow_run_result_completed.rbs +18 -0
- data/sig/anthropic/models/beta/sessions/beta_managed_agents_workflow_run_result_error.rbs +29 -0
- data/sig/anthropic/models/beta/sessions/beta_managed_agents_workflow_run_result_stopped.rbs +18 -0
- data/sig/anthropic/models/beta/sessions/beta_managed_agents_workflow_run_status_ended_event.rbs +44 -0
- data/sig/anthropic/models/beta/sessions/beta_managed_agents_workflow_run_status_idle_event.rbs +39 -0
- data/sig/anthropic/models/beta/sessions/beta_managed_agents_workflow_run_status_running_event.rbs +39 -0
- data/sig/anthropic/models/beta/sessions/thread_list_params.rbs +9 -0
- data/sig/anthropic/resources/beta/agents.rbs +2 -2
- data/sig/anthropic/resources/beta/sessions/threads.rbs +1 -0
- metadata +176 -2
|
@@ -34,14 +34,18 @@ module Anthropic
|
|
|
34
34
|
# Filters as `dimension:value`, e.g. `filter[]=rbac_group_id:{id}`. Repeat the
|
|
35
35
|
# param for OR within a dimension and across dimensions for AND. Supported
|
|
36
36
|
# dimensions on this endpoint: `project_id`, `rbac_group_id`, `user_id`. Value
|
|
37
|
-
# forms: `project_id` takes a tagged project id (`claude_proj_...`)
|
|
38
|
-
# each member's row to their claude.ai chat activity within that project (it
|
|
39
|
-
# cannot be combined with `group_by[]` or an `rbac_group_id` filter);
|
|
37
|
+
# forms: `project_id` takes a tagged project id (`claude_proj_...`);
|
|
40
38
|
# `rbac_group_id` takes the tagged id (`rbac_group_...`, as emitted in responses
|
|
41
39
|
# and by the spend-limits API) or a bare group UUID, and matches users who held
|
|
42
40
|
# the group at any point during each covered UTC day (time-of-usage attribution);
|
|
43
41
|
# `user_id` takes a tagged user id (`user_...`), as emitted in responses. An
|
|
44
|
-
# unsupported dimension returns 400. At most 100 entries.
|
|
42
|
+
# unsupported dimension returns 400. At most 100 entries. A `project_id` filter
|
|
43
|
+
# limits each member's row to their claude.ai chat activity in that project and
|
|
44
|
+
# cannot be combined with `group_by[]` or an `rbac_group_id` filter. On these
|
|
45
|
+
# rows, every count in `chat_cowork_unified_metrics.sessions` is 0, because
|
|
46
|
+
# sessions are not measured per project. On any day a member sent a chat message
|
|
47
|
+
# in Chat and Cowork unified, all of that member's project activity for the day is
|
|
48
|
+
# counted in `chat_cowork_unified_metrics.chat` instead of `chat_metrics`.
|
|
45
49
|
#
|
|
46
50
|
# @return [Array<String>, nil]
|
|
47
51
|
optional :filter, Anthropic::Internal::Type::ArrayOf[String], nil?: true
|
|
@@ -44,13 +44,15 @@ module Anthropic
|
|
|
44
44
|
|
|
45
45
|
# @!attribute product
|
|
46
46
|
# Product that produced this row's activity: one of `chat`, `claude_code`,
|
|
47
|
-
# `cowork`, or `
|
|
48
|
-
#
|
|
49
|
-
#
|
|
50
|
-
#
|
|
51
|
-
#
|
|
52
|
-
#
|
|
53
|
-
#
|
|
47
|
+
# `cowork`, `office_agent`, or `chat_cowork_unified` (Chat and Cowork unified).
|
|
48
|
+
# These are the canonical Cost & Usage product names; an `office_agent` row's
|
|
49
|
+
# per-surface breakdown is in its `office_metrics`. On `/plugins` only `cowork`,
|
|
50
|
+
# `claude_code` and `chat_cowork_unified` occur (the only surfaces with plugin
|
|
51
|
+
# attribution); on `/artifacts` only `chat`, `claude_code`, `cowork` and
|
|
52
|
+
# `chat_cowork_unified` occur (the surfaces that create artifacts);
|
|
53
|
+
# `/apps/chat/projects` does not support the product dimension (a `product` entry
|
|
54
|
+
# in `group_by[]` or `filter[]` there is rejected). Present only when the request
|
|
55
|
+
# grouped by `product`.
|
|
54
56
|
#
|
|
55
57
|
# @return [String, nil]
|
|
56
58
|
optional :product, String, nil?: true
|
data/lib/anthropic/models/beta/organization/beta_analytics_chat_cowork_unified_chat_metrics.rb
ADDED
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Anthropic
|
|
4
|
+
module Models
|
|
5
|
+
module Beta
|
|
6
|
+
module Organization
|
|
7
|
+
class BetaAnalyticsChatCoworkUnifiedChatMetrics < Anthropic::Internal::Type::BaseModel
|
|
8
|
+
# @!attribute connectors_used_count
|
|
9
|
+
# Same measure as `chat_metrics.connectors_used_count`, for activity recorded
|
|
10
|
+
# while members had Chat and Cowork unified turned on.
|
|
11
|
+
#
|
|
12
|
+
# @return [Integer]
|
|
13
|
+
required :connectors_used_count, Integer
|
|
14
|
+
|
|
15
|
+
# @!attribute distinct_artifacts_created_count
|
|
16
|
+
# Same measure as `chat_metrics.distinct_artifacts_created_count`, for activity
|
|
17
|
+
# recorded while members had Chat and Cowork unified turned on. Exact in
|
|
18
|
+
# date-range mode: a creation belongs to exactly one day, so the per-day counts
|
|
19
|
+
# never overlap and their sum over the window is the exact count of distinct
|
|
20
|
+
# creations in it.
|
|
21
|
+
#
|
|
22
|
+
# @return [Integer]
|
|
23
|
+
required :distinct_artifacts_created_count, Integer
|
|
24
|
+
|
|
25
|
+
# @!attribute distinct_connectors_used_count
|
|
26
|
+
# Same measure as `chat_metrics.distinct_connectors_used_count`, for activity
|
|
27
|
+
# recorded while members had Chat and Cowork unified turned on. Approximate (HLL,
|
|
28
|
+
# typical error <2%) in date-range mode. Null on aggregated rows where a distinct
|
|
29
|
+
# count cannot be computed.
|
|
30
|
+
#
|
|
31
|
+
# @return [Integer, nil]
|
|
32
|
+
required :distinct_connectors_used_count, Integer, nil?: true
|
|
33
|
+
|
|
34
|
+
# @!attribute distinct_conversation_count
|
|
35
|
+
# Same measure as `chat_metrics.distinct_conversation_count`, for activity
|
|
36
|
+
# recorded while members had Chat and Cowork unified turned on. Approximate (HLL,
|
|
37
|
+
# typical error <2%) in date-range mode. Null on aggregated rows where a distinct
|
|
38
|
+
# count cannot be computed.
|
|
39
|
+
#
|
|
40
|
+
# @return [Integer, nil]
|
|
41
|
+
required :distinct_conversation_count, Integer, nil?: true
|
|
42
|
+
|
|
43
|
+
# @!attribute distinct_files_uploaded_count
|
|
44
|
+
# Same measure as `chat_metrics.distinct_files_uploaded_count`, for activity
|
|
45
|
+
# recorded while members had Chat and Cowork unified turned on. It counts uploaded
|
|
46
|
+
# files as well as files Claude created and images returned by Claude's tools,
|
|
47
|
+
# such as screenshots. Approximate (HLL, typical error <2%) in date-range mode.
|
|
48
|
+
# Null on aggregated rows where a distinct count cannot be computed.
|
|
49
|
+
#
|
|
50
|
+
# @return [Integer, nil]
|
|
51
|
+
required :distinct_files_uploaded_count, Integer, nil?: true
|
|
52
|
+
|
|
53
|
+
# @!attribute distinct_projects_created_count
|
|
54
|
+
# Same measure as `chat_metrics.distinct_projects_created_count`, for activity
|
|
55
|
+
# recorded while members had Chat and Cowork unified turned on. Exact in
|
|
56
|
+
# date-range mode: a creation belongs to exactly one day, so the per-day counts
|
|
57
|
+
# never overlap and their sum over the window is the exact count of distinct
|
|
58
|
+
# creations in it.
|
|
59
|
+
#
|
|
60
|
+
# @return [Integer]
|
|
61
|
+
required :distinct_projects_created_count, Integer
|
|
62
|
+
|
|
63
|
+
# @!attribute distinct_projects_used_count
|
|
64
|
+
# Same measure as `chat_metrics.distinct_projects_used_count`, for activity
|
|
65
|
+
# recorded while members had Chat and Cowork unified turned on. Approximate (HLL,
|
|
66
|
+
# typical error <2%) in date-range mode. Null on aggregated rows where a distinct
|
|
67
|
+
# count cannot be computed.
|
|
68
|
+
#
|
|
69
|
+
# @return [Integer, nil]
|
|
70
|
+
required :distinct_projects_used_count, Integer, nil?: true
|
|
71
|
+
|
|
72
|
+
# @!attribute distinct_shared_artifacts_viewed_count
|
|
73
|
+
# Always null: shared-artifact views are not currently measured.
|
|
74
|
+
#
|
|
75
|
+
# @return [Integer, nil]
|
|
76
|
+
required :distinct_shared_artifacts_viewed_count, Integer, nil?: true
|
|
77
|
+
|
|
78
|
+
# @!attribute distinct_skills_used_count
|
|
79
|
+
# Same measure as `chat_metrics.distinct_skills_used_count`, for activity recorded
|
|
80
|
+
# while members had Chat and Cowork unified turned on. Approximate (HLL, typical
|
|
81
|
+
# error <2%) in date-range mode. Null on aggregated rows where a distinct count
|
|
82
|
+
# cannot be computed.
|
|
83
|
+
#
|
|
84
|
+
# @return [Integer, nil]
|
|
85
|
+
required :distinct_skills_used_count, Integer, nil?: true
|
|
86
|
+
|
|
87
|
+
# @!attribute message_count
|
|
88
|
+
# Same measure as `chat_metrics.message_count`, for activity recorded while
|
|
89
|
+
# members had Chat and Cowork unified turned on.
|
|
90
|
+
#
|
|
91
|
+
# @return [Integer]
|
|
92
|
+
required :message_count, Integer
|
|
93
|
+
|
|
94
|
+
# @!attribute shared_conversations_viewed_count
|
|
95
|
+
# Same measure as `chat_metrics.shared_conversations_viewed_count`, for activity
|
|
96
|
+
# recorded while members had Chat and Cowork unified turned on.
|
|
97
|
+
#
|
|
98
|
+
# @return [Integer]
|
|
99
|
+
required :shared_conversations_viewed_count, Integer
|
|
100
|
+
|
|
101
|
+
# @!attribute thinking_message_count
|
|
102
|
+
# Same measure as `chat_metrics.thinking_message_count`, for activity recorded
|
|
103
|
+
# while members had Chat and Cowork unified turned on.
|
|
104
|
+
#
|
|
105
|
+
# @return [Integer]
|
|
106
|
+
required :thinking_message_count, Integer
|
|
107
|
+
|
|
108
|
+
# @!method initialize(connectors_used_count:, distinct_artifacts_created_count:, distinct_connectors_used_count:, distinct_conversation_count:, distinct_files_uploaded_count:, distinct_projects_created_count:, distinct_projects_used_count:, distinct_shared_artifacts_viewed_count:, distinct_skills_used_count:, message_count:, shared_conversations_viewed_count:, thinking_message_count:)
|
|
109
|
+
# Chat activity recorded while members had Chat and Cowork unified turned on.
|
|
110
|
+
#
|
|
111
|
+
# Some parameter documentations has been truncated, see
|
|
112
|
+
# {Anthropic::Models::Beta::Organization::BetaAnalyticsChatCoworkUnifiedChatMetrics}
|
|
113
|
+
# for more details.
|
|
114
|
+
#
|
|
115
|
+
# @param connectors_used_count [Integer] Same measure as `chat_metrics.connectors_used_count`, for activity recorded whil
|
|
116
|
+
#
|
|
117
|
+
# @param distinct_artifacts_created_count [Integer] Same measure as `chat_metrics.distinct_artifacts_created_count`, for activity re
|
|
118
|
+
#
|
|
119
|
+
# @param distinct_connectors_used_count [Integer, nil] Same measure as `chat_metrics.distinct_connectors_used_count`, for activity reco
|
|
120
|
+
#
|
|
121
|
+
# @param distinct_conversation_count [Integer, nil] Same measure as `chat_metrics.distinct_conversation_count`, for activity recorde
|
|
122
|
+
#
|
|
123
|
+
# @param distinct_files_uploaded_count [Integer, nil] Same measure as `chat_metrics.distinct_files_uploaded_count`, for activity recor
|
|
124
|
+
#
|
|
125
|
+
# @param distinct_projects_created_count [Integer] Same measure as `chat_metrics.distinct_projects_created_count`, for activity rec
|
|
126
|
+
#
|
|
127
|
+
# @param distinct_projects_used_count [Integer, nil] Same measure as `chat_metrics.distinct_projects_used_count`, for activity record
|
|
128
|
+
#
|
|
129
|
+
# @param distinct_shared_artifacts_viewed_count [Integer, nil] Always null: shared-artifact views are not currently measured.
|
|
130
|
+
#
|
|
131
|
+
# @param distinct_skills_used_count [Integer, nil] Same measure as `chat_metrics.distinct_skills_used_count`, for activity recorded
|
|
132
|
+
#
|
|
133
|
+
# @param message_count [Integer] Same measure as `chat_metrics.message_count`, for activity recorded while member
|
|
134
|
+
#
|
|
135
|
+
# @param shared_conversations_viewed_count [Integer] Same measure as `chat_metrics.shared_conversations_viewed_count`, for activity r
|
|
136
|
+
#
|
|
137
|
+
# @param thinking_message_count [Integer] Same measure as `chat_metrics.thinking_message_count`, for activity recorded whi
|
|
138
|
+
end
|
|
139
|
+
end
|
|
140
|
+
end
|
|
141
|
+
end
|
|
142
|
+
end
|
data/lib/anthropic/models/beta/organization/beta_analytics_chat_cowork_unified_sessions_metrics.rb
ADDED
|
@@ -0,0 +1,186 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Anthropic
|
|
4
|
+
module Models
|
|
5
|
+
module Beta
|
|
6
|
+
module Organization
|
|
7
|
+
class BetaAnalyticsChatCoworkUnifiedSessionsMetrics < Anthropic::Internal::Type::BaseModel
|
|
8
|
+
# @!attribute action_count
|
|
9
|
+
# Same measure as `cowork_metrics.action_count`, for activity recorded while
|
|
10
|
+
# members had Chat and Cowork unified turned on.
|
|
11
|
+
#
|
|
12
|
+
# @return [Integer]
|
|
13
|
+
required :action_count, Integer
|
|
14
|
+
|
|
15
|
+
# @!attribute artifacts_created_count
|
|
16
|
+
# Same measure as `cowork_metrics.artifacts_created_count`, for activity recorded
|
|
17
|
+
# while members had Chat and Cowork unified turned on. Exact in date-range mode: a
|
|
18
|
+
# creation belongs to exactly one day, so the per-day counts never overlap and
|
|
19
|
+
# their sum over the window is the exact count of distinct creations in it.
|
|
20
|
+
#
|
|
21
|
+
# @return [Integer]
|
|
22
|
+
required :artifacts_created_count, Integer
|
|
23
|
+
|
|
24
|
+
# @!attribute connectors_used_count
|
|
25
|
+
# Same measure as `cowork_metrics.connectors_used_count`, for activity recorded
|
|
26
|
+
# while members had Chat and Cowork unified turned on.
|
|
27
|
+
#
|
|
28
|
+
# @return [Integer]
|
|
29
|
+
required :connectors_used_count, Integer
|
|
30
|
+
|
|
31
|
+
# @!attribute dispatch_turn_count
|
|
32
|
+
# Same measure as `cowork_metrics.dispatch_turn_count`, for activity recorded
|
|
33
|
+
# while members had Chat and Cowork unified turned on.
|
|
34
|
+
#
|
|
35
|
+
# @return [Integer]
|
|
36
|
+
required :dispatch_turn_count, Integer
|
|
37
|
+
|
|
38
|
+
# @!attribute distinct_connectors_used_count
|
|
39
|
+
# Same measure as `cowork_metrics.distinct_connectors_used_count`, for activity
|
|
40
|
+
# recorded while members had Chat and Cowork unified turned on. Approximate (HLL,
|
|
41
|
+
# typical error <2%) in date-range mode. Null on aggregated rows where a distinct
|
|
42
|
+
# count cannot be computed.
|
|
43
|
+
#
|
|
44
|
+
# @return [Integer, nil]
|
|
45
|
+
required :distinct_connectors_used_count, Integer, nil?: true
|
|
46
|
+
|
|
47
|
+
# @!attribute distinct_plugins_used_count
|
|
48
|
+
# Same measure as `cowork_metrics.distinct_plugins_used_count`, for activity
|
|
49
|
+
# recorded while members had Chat and Cowork unified turned on. Approximate (HLL,
|
|
50
|
+
# typical error <2%) in date-range mode. Null on aggregated rows where a distinct
|
|
51
|
+
# count cannot be computed.
|
|
52
|
+
#
|
|
53
|
+
# @return [Integer, nil]
|
|
54
|
+
required :distinct_plugins_used_count, Integer, nil?: true
|
|
55
|
+
|
|
56
|
+
# @!attribute distinct_session_count
|
|
57
|
+
# Same measure as `cowork_metrics.distinct_session_count`, for activity recorded
|
|
58
|
+
# while members had Chat and Cowork unified turned on. Approximate (HLL, typical
|
|
59
|
+
# error <2%) in date-range mode. Null on aggregated rows where a distinct count
|
|
60
|
+
# cannot be computed.
|
|
61
|
+
#
|
|
62
|
+
# @return [Integer, nil]
|
|
63
|
+
required :distinct_session_count, Integer, nil?: true
|
|
64
|
+
|
|
65
|
+
# @!attribute distinct_skills_used_count
|
|
66
|
+
# Same measure as `cowork_metrics.distinct_skills_used_count`, for activity
|
|
67
|
+
# recorded while members had Chat and Cowork unified turned on. Approximate (HLL,
|
|
68
|
+
# typical error <2%) in date-range mode. Null on aggregated rows where a distinct
|
|
69
|
+
# count cannot be computed.
|
|
70
|
+
#
|
|
71
|
+
# @return [Integer, nil]
|
|
72
|
+
required :distinct_skills_used_count, Integer, nil?: true
|
|
73
|
+
|
|
74
|
+
# @!attribute edit_tool_count
|
|
75
|
+
# Same measure as `cowork_metrics.edit_tool_count`, for activity recorded while
|
|
76
|
+
# members had Chat and Cowork unified turned on.
|
|
77
|
+
#
|
|
78
|
+
# @return [Integer, nil]
|
|
79
|
+
required :edit_tool_count, Integer, nil?: true
|
|
80
|
+
|
|
81
|
+
# @!attribute file_edit_count
|
|
82
|
+
# Same measure as `cowork_metrics.file_edit_count`, for activity recorded while
|
|
83
|
+
# members had Chat and Cowork unified turned on.
|
|
84
|
+
#
|
|
85
|
+
# @return [Integer, nil]
|
|
86
|
+
required :file_edit_count, Integer, nil?: true
|
|
87
|
+
|
|
88
|
+
# @!attribute message_count
|
|
89
|
+
# Same measure as `cowork_metrics.message_count`, for activity recorded while
|
|
90
|
+
# members had Chat and Cowork unified turned on.
|
|
91
|
+
#
|
|
92
|
+
# @return [Integer]
|
|
93
|
+
required :message_count, Integer
|
|
94
|
+
|
|
95
|
+
# @!attribute multi_edit_tool_count
|
|
96
|
+
# Same measure as `cowork_metrics.multi_edit_tool_count`, for activity recorded
|
|
97
|
+
# while members had Chat and Cowork unified turned on. Claude no longer has a
|
|
98
|
+
# multi-edit tool, so expect 0 when not null; each edit is now a separate Edit
|
|
99
|
+
# tool call, counted in `edit_tool_count` and `file_edit_count`.
|
|
100
|
+
#
|
|
101
|
+
# @return [Integer, nil]
|
|
102
|
+
required :multi_edit_tool_count, Integer, nil?: true
|
|
103
|
+
|
|
104
|
+
# @!attribute notebook_edit_tool_count
|
|
105
|
+
# Same measure as `cowork_metrics.notebook_edit_tool_count`, for activity recorded
|
|
106
|
+
# while members had Chat and Cowork unified turned on.
|
|
107
|
+
#
|
|
108
|
+
# @return [Integer, nil]
|
|
109
|
+
required :notebook_edit_tool_count, Integer, nil?: true
|
|
110
|
+
|
|
111
|
+
# @!attribute plugins_used_count
|
|
112
|
+
# Same measure as `cowork_metrics.plugins_used_count`, for activity recorded while
|
|
113
|
+
# members had Chat and Cowork unified turned on.
|
|
114
|
+
#
|
|
115
|
+
# @return [Integer, nil]
|
|
116
|
+
required :plugins_used_count, Integer, nil?: true
|
|
117
|
+
|
|
118
|
+
# @!attribute sessions_with_file_edits_count
|
|
119
|
+
# Same measure as `cowork_metrics.sessions_with_file_edits_count`, for activity
|
|
120
|
+
# recorded while members had Chat and Cowork unified turned on. Approximate (HLL,
|
|
121
|
+
# typical error <2%) in date-range mode. Null on aggregated rows where a distinct
|
|
122
|
+
# count cannot be computed.
|
|
123
|
+
#
|
|
124
|
+
# @return [Integer, nil]
|
|
125
|
+
required :sessions_with_file_edits_count, Integer, nil?: true
|
|
126
|
+
|
|
127
|
+
# @!attribute skills_used_count
|
|
128
|
+
# Same measure as `cowork_metrics.skills_used_count`, for activity recorded while
|
|
129
|
+
# members had Chat and Cowork unified turned on.
|
|
130
|
+
#
|
|
131
|
+
# @return [Integer]
|
|
132
|
+
required :skills_used_count, Integer
|
|
133
|
+
|
|
134
|
+
# @!attribute write_tool_count
|
|
135
|
+
# Same measure as `cowork_metrics.write_tool_count`, for activity recorded while
|
|
136
|
+
# members had Chat and Cowork unified turned on.
|
|
137
|
+
#
|
|
138
|
+
# @return [Integer, nil]
|
|
139
|
+
required :write_tool_count, Integer, nil?: true
|
|
140
|
+
|
|
141
|
+
# @!method initialize(action_count:, artifacts_created_count:, connectors_used_count:, dispatch_turn_count:, distinct_connectors_used_count:, distinct_plugins_used_count:, distinct_session_count:, distinct_skills_used_count:, edit_tool_count:, file_edit_count:, message_count:, multi_edit_tool_count:, notebook_edit_tool_count:, plugins_used_count:, sessions_with_file_edits_count:, skills_used_count:, write_tool_count:)
|
|
142
|
+
# Cowork session activity recorded while members had Chat and Cowork unified
|
|
143
|
+
# turned on.
|
|
144
|
+
#
|
|
145
|
+
# Some parameter documentations has been truncated, see
|
|
146
|
+
# {Anthropic::Models::Beta::Organization::BetaAnalyticsChatCoworkUnifiedSessionsMetrics}
|
|
147
|
+
# for more details.
|
|
148
|
+
#
|
|
149
|
+
# @param action_count [Integer] Same measure as `cowork_metrics.action_count`, for activity recorded while membe
|
|
150
|
+
#
|
|
151
|
+
# @param artifacts_created_count [Integer] Same measure as `cowork_metrics.artifacts_created_count`, for activity recorded
|
|
152
|
+
#
|
|
153
|
+
# @param connectors_used_count [Integer] Same measure as `cowork_metrics.connectors_used_count`, for activity recorded wh
|
|
154
|
+
#
|
|
155
|
+
# @param dispatch_turn_count [Integer] Same measure as `cowork_metrics.dispatch_turn_count`, for activity recorded whil
|
|
156
|
+
#
|
|
157
|
+
# @param distinct_connectors_used_count [Integer, nil] Same measure as `cowork_metrics.distinct_connectors_used_count`, for activity re
|
|
158
|
+
#
|
|
159
|
+
# @param distinct_plugins_used_count [Integer, nil] Same measure as `cowork_metrics.distinct_plugins_used_count`, for activity recor
|
|
160
|
+
#
|
|
161
|
+
# @param distinct_session_count [Integer, nil] Same measure as `cowork_metrics.distinct_session_count`, for activity recorded w
|
|
162
|
+
#
|
|
163
|
+
# @param distinct_skills_used_count [Integer, nil] Same measure as `cowork_metrics.distinct_skills_used_count`, for activity record
|
|
164
|
+
#
|
|
165
|
+
# @param edit_tool_count [Integer, nil] Same measure as `cowork_metrics.edit_tool_count`, for activity recorded while me
|
|
166
|
+
#
|
|
167
|
+
# @param file_edit_count [Integer, nil] Same measure as `cowork_metrics.file_edit_count`, for activity recorded while me
|
|
168
|
+
#
|
|
169
|
+
# @param message_count [Integer] Same measure as `cowork_metrics.message_count`, for activity recorded while memb
|
|
170
|
+
#
|
|
171
|
+
# @param multi_edit_tool_count [Integer, nil] Same measure as `cowork_metrics.multi_edit_tool_count`, for activity recorded wh
|
|
172
|
+
#
|
|
173
|
+
# @param notebook_edit_tool_count [Integer, nil] Same measure as `cowork_metrics.notebook_edit_tool_count`, for activity recorded
|
|
174
|
+
#
|
|
175
|
+
# @param plugins_used_count [Integer, nil] Same measure as `cowork_metrics.plugins_used_count`, for activity recorded while
|
|
176
|
+
#
|
|
177
|
+
# @param sessions_with_file_edits_count [Integer, nil] Same measure as `cowork_metrics.sessions_with_file_edits_count`, for activity re
|
|
178
|
+
#
|
|
179
|
+
# @param skills_used_count [Integer] Same measure as `cowork_metrics.skills_used_count`, for activity recorded while
|
|
180
|
+
#
|
|
181
|
+
# @param write_tool_count [Integer, nil] Same measure as `cowork_metrics.write_tool_count`, for activity recorded while m
|
|
182
|
+
end
|
|
183
|
+
end
|
|
184
|
+
end
|
|
185
|
+
end
|
|
186
|
+
end
|
|
@@ -46,6 +46,20 @@ module Anthropic
|
|
|
46
46
|
# @return [Anthropic::Models::Beta::Organization::BetaAnalyticsConnectorOfficeMetrics]
|
|
47
47
|
required :office_metrics, -> { Anthropic::Beta::Organization::BetaAnalyticsConnectorOfficeMetrics }
|
|
48
48
|
|
|
49
|
+
# @!attribute chat_cowork_unified_metrics
|
|
50
|
+
# Connector use recorded while members had Chat and Cowork unified (Cowork's
|
|
51
|
+
# features inside claude.ai chat) turned on, split into chat conversations and
|
|
52
|
+
# Cowork sessions. A count is null in date-range mode where it cannot be computed.
|
|
53
|
+
# Omitted from the response on deployments that do not offer Chat and Cowork
|
|
54
|
+
# unified.
|
|
55
|
+
#
|
|
56
|
+
# @return [Anthropic::Models::Beta::Organization::BetaAnalyticsConnectorActivity::ChatCoworkUnifiedMetrics, nil]
|
|
57
|
+
optional :chat_cowork_unified_metrics,
|
|
58
|
+
-> {
|
|
59
|
+
Anthropic::Beta::Organization::BetaAnalyticsConnectorActivity::ChatCoworkUnifiedMetrics
|
|
60
|
+
},
|
|
61
|
+
nil?: true
|
|
62
|
+
|
|
49
63
|
# @!attribute connector_display_name
|
|
50
64
|
# Human-readable display name for rows whose `connector_name` is an opaque
|
|
51
65
|
# connector id rather than a readable name, resolved at request time from the
|
|
@@ -99,13 +113,15 @@ module Anthropic
|
|
|
99
113
|
|
|
100
114
|
# @!attribute product
|
|
101
115
|
# Product that produced this row's activity: one of `chat`, `claude_code`,
|
|
102
|
-
# `cowork`, or `
|
|
103
|
-
#
|
|
104
|
-
#
|
|
105
|
-
#
|
|
106
|
-
#
|
|
107
|
-
#
|
|
108
|
-
#
|
|
116
|
+
# `cowork`, `office_agent`, or `chat_cowork_unified` (Chat and Cowork unified).
|
|
117
|
+
# These are the canonical Cost & Usage product names; an `office_agent` row's
|
|
118
|
+
# per-surface breakdown is in its `office_metrics`. On `/plugins` only `cowork`,
|
|
119
|
+
# `claude_code` and `chat_cowork_unified` occur (the only surfaces with plugin
|
|
120
|
+
# attribution); on `/artifacts` only `chat`, `claude_code`, `cowork` and
|
|
121
|
+
# `chat_cowork_unified` occur (the surfaces that create artifacts);
|
|
122
|
+
# `/apps/chat/projects` does not support the product dimension (a `product` entry
|
|
123
|
+
# in `group_by[]` or `filter[]` there is rejected). Present only when the request
|
|
124
|
+
# grouped by `product`.
|
|
109
125
|
#
|
|
110
126
|
# @return [String, nil]
|
|
111
127
|
optional :product, String, nil?: true
|
|
@@ -171,7 +187,7 @@ module Anthropic
|
|
|
171
187
|
# @return [Integer, nil]
|
|
172
188
|
optional :write_call_count, Integer, nil?: true
|
|
173
189
|
|
|
174
|
-
# @!method initialize(chat_metrics:, claude_code_metrics:, connector_name:, cowork_metrics:, distinct_user_count:, office_metrics:, connector_display_name: nil, individual_auth_distinct_user_count: nil, managed_auth_distinct_user_count: nil, product: nil, rbac_group_id: nil, rbac_group_name: nil, read_call_count: nil, unclassified_call_count: nil, user_id: nil, write_call_count: nil)
|
|
190
|
+
# @!method initialize(chat_metrics:, claude_code_metrics:, connector_name:, cowork_metrics:, distinct_user_count:, office_metrics:, chat_cowork_unified_metrics: nil, connector_display_name: nil, individual_auth_distinct_user_count: nil, managed_auth_distinct_user_count: nil, product: nil, rbac_group_id: nil, rbac_group_name: nil, read_call_count: nil, unclassified_call_count: nil, user_id: nil, write_call_count: nil)
|
|
175
191
|
# Per-connector activity data for a given day.
|
|
176
192
|
#
|
|
177
193
|
# Some parameter documentations has been truncated, see
|
|
@@ -190,6 +206,8 @@ module Anthropic
|
|
|
190
206
|
#
|
|
191
207
|
# @param office_metrics [Anthropic::Models::Beta::Organization::BetaAnalyticsConnectorOfficeMetrics] Office Agent activity metrics for a single connector on a given day, broken out
|
|
192
208
|
#
|
|
209
|
+
# @param chat_cowork_unified_metrics [Anthropic::Models::Beta::Organization::BetaAnalyticsConnectorActivity::ChatCoworkUnifiedMetrics, nil] Connector use recorded while members had Chat and Cowork unified (Cowork's featu
|
|
210
|
+
#
|
|
193
211
|
# @param connector_display_name [String, nil] Human-readable display name for rows whose `connector_name` is an opaque connect
|
|
194
212
|
#
|
|
195
213
|
# @param individual_auth_distinct_user_count [Integer, nil] Number of distinct users whose use of this connector on the requested day ran on
|
|
@@ -209,6 +227,39 @@ module Anthropic
|
|
|
209
227
|
# @param user_id [String, nil] Tagged user identifier (e.g. `user_...`). Present only when the request grouped
|
|
210
228
|
#
|
|
211
229
|
# @param write_call_count [Integer, nil] Number of connector tool calls on the requested day whose trusted read-only anno
|
|
230
|
+
|
|
231
|
+
# @see Anthropic::Models::Beta::Organization::BetaAnalyticsConnectorActivity#chat_cowork_unified_metrics
|
|
232
|
+
class ChatCoworkUnifiedMetrics < Anthropic::Internal::Type::BaseModel
|
|
233
|
+
# @!attribute chat
|
|
234
|
+
# A connector's use in chat conversations recorded while members had Chat and
|
|
235
|
+
# Cowork unified turned on.
|
|
236
|
+
#
|
|
237
|
+
# @return [Anthropic::Models::Beta::Organization::BetaAnalyticsConnectorChatCoworkUnifiedChatMetrics]
|
|
238
|
+
required :chat, -> { Anthropic::Beta::Organization::BetaAnalyticsConnectorChatCoworkUnifiedChatMetrics }
|
|
239
|
+
|
|
240
|
+
# @!attribute sessions
|
|
241
|
+
# A connector's use in Cowork sessions recorded while members had Chat and Cowork
|
|
242
|
+
# unified turned on.
|
|
243
|
+
#
|
|
244
|
+
# @return [Anthropic::Models::Beta::Organization::BetaAnalyticsConnectorChatCoworkUnifiedSessionsMetrics]
|
|
245
|
+
required :sessions,
|
|
246
|
+
-> { Anthropic::Beta::Organization::BetaAnalyticsConnectorChatCoworkUnifiedSessionsMetrics }
|
|
247
|
+
|
|
248
|
+
# @!method initialize(chat:, sessions:)
|
|
249
|
+
# Connector use recorded while members had Chat and Cowork unified (Cowork's
|
|
250
|
+
# features inside claude.ai chat) turned on, split into chat conversations and
|
|
251
|
+
# Cowork sessions. A count is null in date-range mode where it cannot be computed.
|
|
252
|
+
# Omitted from the response on deployments that do not offer Chat and Cowork
|
|
253
|
+
# unified.
|
|
254
|
+
#
|
|
255
|
+
# Some parameter documentations has been truncated, see
|
|
256
|
+
# {Anthropic::Models::Beta::Organization::BetaAnalyticsConnectorActivity::ChatCoworkUnifiedMetrics}
|
|
257
|
+
# for more details.
|
|
258
|
+
#
|
|
259
|
+
# @param chat [Anthropic::Models::Beta::Organization::BetaAnalyticsConnectorChatCoworkUnifiedChatMetrics] A connector's use in chat conversations recorded while members had
|
|
260
|
+
#
|
|
261
|
+
# @param sessions [Anthropic::Models::Beta::Organization::BetaAnalyticsConnectorChatCoworkUnifiedSessionsMetrics] A connector's use in Cowork sessions recorded while members had
|
|
262
|
+
end
|
|
212
263
|
end
|
|
213
264
|
end
|
|
214
265
|
end
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Anthropic
|
|
4
|
+
module Models
|
|
5
|
+
module Beta
|
|
6
|
+
module Organization
|
|
7
|
+
class BetaAnalyticsConnectorChatCoworkUnifiedChatMetrics < Anthropic::Internal::Type::BaseModel
|
|
8
|
+
# @!attribute distinct_conversation_connector_used_count
|
|
9
|
+
# Same measure as `chat_metrics.distinct_conversation_connector_used_count`, for
|
|
10
|
+
# activity recorded while members had Chat and Cowork unified turned on.
|
|
11
|
+
# Approximate (HLL, typical error <2%) in date-range mode. Null on aggregated rows
|
|
12
|
+
# where a distinct count cannot be computed.
|
|
13
|
+
#
|
|
14
|
+
# @return [Integer, nil]
|
|
15
|
+
required :distinct_conversation_connector_used_count, Integer, nil?: true
|
|
16
|
+
|
|
17
|
+
# @!method initialize(distinct_conversation_connector_used_count:)
|
|
18
|
+
# A connector's use in chat conversations recorded while members had Chat and
|
|
19
|
+
# Cowork unified turned on.
|
|
20
|
+
#
|
|
21
|
+
# Some parameter documentations has been truncated, see
|
|
22
|
+
# {Anthropic::Models::Beta::Organization::BetaAnalyticsConnectorChatCoworkUnifiedChatMetrics}
|
|
23
|
+
# for more details.
|
|
24
|
+
#
|
|
25
|
+
# @param distinct_conversation_connector_used_count [Integer, nil] Same measure as `chat_metrics.distinct_conversation_connector_used_count`, for a
|
|
26
|
+
end
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
end
|
|
30
|
+
end
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Anthropic
|
|
4
|
+
module Models
|
|
5
|
+
module Beta
|
|
6
|
+
module Organization
|
|
7
|
+
class BetaAnalyticsConnectorChatCoworkUnifiedSessionsMetrics < Anthropic::Internal::Type::BaseModel
|
|
8
|
+
# @!attribute distinct_session_connector_used_count
|
|
9
|
+
# Same measure as `cowork_metrics.distinct_session_connector_used_count`, for
|
|
10
|
+
# activity recorded while members had Chat and Cowork unified turned on.
|
|
11
|
+
# Approximate (HLL, typical error <2%) in date-range mode. Null on aggregated rows
|
|
12
|
+
# where a distinct count cannot be computed.
|
|
13
|
+
#
|
|
14
|
+
# @return [Integer, nil]
|
|
15
|
+
required :distinct_session_connector_used_count, Integer, nil?: true
|
|
16
|
+
|
|
17
|
+
# @!method initialize(distinct_session_connector_used_count:)
|
|
18
|
+
# A connector's use in Cowork sessions recorded while members had Chat and Cowork
|
|
19
|
+
# unified turned on.
|
|
20
|
+
#
|
|
21
|
+
# Some parameter documentations has been truncated, see
|
|
22
|
+
# {Anthropic::Models::Beta::Organization::BetaAnalyticsConnectorChatCoworkUnifiedSessionsMetrics}
|
|
23
|
+
# for more details.
|
|
24
|
+
#
|
|
25
|
+
# @param distinct_session_connector_used_count [Integer, nil] Same measure as `cowork_metrics.distinct_session_connector_used_count`, for acti
|
|
26
|
+
end
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
end
|
|
30
|
+
end
|
|
@@ -90,9 +90,13 @@ module Anthropic
|
|
|
90
90
|
# Product surface that produced the usage or cost. Null unless product is in
|
|
91
91
|
# `group_by[]`; it can also be null on grouped rows whose usage cannot be
|
|
92
92
|
# attributed to a known surface. Values include `chat`, `claude_code`, `cowork`,
|
|
93
|
-
# `office_agent`, `claude_in_chrome`, `claude_design`,
|
|
94
|
-
# `claude-tag` is Claude Tag, the Claude product in Slack.
|
|
95
|
-
# is
|
|
93
|
+
# `office_agent`, `claude_in_chrome`, `claude_design`, `claude-tag`, and
|
|
94
|
+
# `chat_cowork_unified`. `claude-tag` is Claude Tag, the Claude product in Slack.
|
|
95
|
+
# `chat_cowork_unified` is Chat and Cowork unified, Cowork's features inside
|
|
96
|
+
# claude.ai chat: chat and Cowork usage by a member who has it turned on is
|
|
97
|
+
# reported under this value instead of `chat` or `cowork`. It is accepted as a
|
|
98
|
+
# filter only on deployments that offer Chat and Cowork unified. Some unattributed
|
|
99
|
+
# usage is reported as "other".
|
|
96
100
|
#
|
|
97
101
|
# @return [String, nil]
|
|
98
102
|
required :product, String, nil?: true
|
|
@@ -102,9 +102,13 @@ module Anthropic
|
|
|
102
102
|
# Product surface that produced the usage or cost. Null unless product is in
|
|
103
103
|
# `group_by[]`; it can also be null on grouped rows whose usage cannot be
|
|
104
104
|
# attributed to a known surface. Values include `chat`, `claude_code`, `cowork`,
|
|
105
|
-
# `office_agent`, `claude_in_chrome`, `claude_design`,
|
|
106
|
-
# `claude-tag` is Claude Tag, the Claude product in Slack.
|
|
107
|
-
# is
|
|
105
|
+
# `office_agent`, `claude_in_chrome`, `claude_design`, `claude-tag`, and
|
|
106
|
+
# `chat_cowork_unified`. `claude-tag` is Claude Tag, the Claude product in Slack.
|
|
107
|
+
# `chat_cowork_unified` is Chat and Cowork unified, Cowork's features inside
|
|
108
|
+
# claude.ai chat: chat and Cowork usage by a member who has it turned on is
|
|
109
|
+
# reported under this value instead of `chat` or `cowork`. It is accepted as a
|
|
110
|
+
# filter only on deployments that offer Chat and Cowork unified. Some unattributed
|
|
111
|
+
# usage is reported as "other".
|
|
108
112
|
#
|
|
109
113
|
# @return [String, nil]
|
|
110
114
|
required :product, String, nil?: true
|