|
3 | 3 |
|
4 | 4 | Generated from: @github/copilot/session-events.schema.json |
5 | 5 | Generated by: scripts/generate-session-types.ts |
6 | | -Generated at: 2026-02-03T20:40:49.486Z |
| 6 | +Generated at: 2026-02-06T20:38:23.376Z |
7 | 7 |
|
8 | 8 | To update these types: |
9 | 9 | 1. Update the schema in copilot-agent-runtime |
@@ -543,6 +543,7 @@ class Data: |
543 | 543 | post_compaction_tokens: Optional[float] = None |
544 | 544 | pre_compaction_messages_length: Optional[float] = None |
545 | 545 | pre_compaction_tokens: Optional[float] = None |
| 546 | + request_id: Optional[str] = None |
546 | 547 | success: Optional[bool] = None |
547 | 548 | summary_content: Optional[str] = None |
548 | 549 | tokens_removed: Optional[float] = None |
@@ -649,6 +650,7 @@ def from_dict(obj: Any) -> 'Data': |
649 | 650 | post_compaction_tokens = from_union([from_float, from_none], obj.get("postCompactionTokens")) |
650 | 651 | pre_compaction_messages_length = from_union([from_float, from_none], obj.get("preCompactionMessagesLength")) |
651 | 652 | pre_compaction_tokens = from_union([from_float, from_none], obj.get("preCompactionTokens")) |
| 653 | + request_id = from_union([from_str, from_none], obj.get("requestId")) |
652 | 654 | success = from_union([from_bool, from_none], obj.get("success")) |
653 | 655 | summary_content = from_union([from_str, from_none], obj.get("summaryContent")) |
654 | 656 | tokens_removed = from_union([from_float, from_none], obj.get("tokensRemoved")) |
@@ -701,7 +703,7 @@ def from_dict(obj: Any) -> 'Data': |
701 | 703 | output = obj.get("output") |
702 | 704 | metadata = from_union([Metadata.from_dict, from_none], obj.get("metadata")) |
703 | 705 | role = from_union([Role, from_none], obj.get("role")) |
704 | | - return Data(context, copilot_version, producer, selected_model, session_id, start_time, version, event_count, resume_time, error_type, message, provider_call_id, stack, status_code, info_type, new_model, previous_model, handoff_time, remote_session_id, repository, source_type, summary, messages_removed_during_truncation, performed_by, post_truncation_messages_length, post_truncation_tokens_in_messages, pre_truncation_messages_length, pre_truncation_tokens_in_messages, token_limit, tokens_removed_during_truncation, events_removed, up_to_event_id, code_changes, current_model, error_reason, model_metrics, session_start_time, shutdown_type, total_api_duration_ms, total_premium_requests, current_tokens, messages_length, checkpoint_number, checkpoint_path, compaction_tokens_used, error, messages_removed, post_compaction_tokens, pre_compaction_messages_length, pre_compaction_tokens, success, summary_content, tokens_removed, attachments, content, source, transformed_content, turn_id, intent, reasoning_id, delta_content, encrypted_content, message_id, parent_tool_call_id, reasoning_opaque, reasoning_text, tool_requests, total_response_size_bytes, api_call_id, cache_read_tokens, cache_write_tokens, cost, duration, initiator, input_tokens, model, output_tokens, quota_snapshots, reason, arguments, tool_call_id, tool_name, mcp_server_name, mcp_tool_name, partial_output, progress_message, is_user_requested, result, tool_telemetry, allowed_tools, name, path, agent_description, agent_display_name, agent_name, tools, hook_invocation_id, hook_type, input, output, metadata, role) |
| 706 | + return Data(context, copilot_version, producer, selected_model, session_id, start_time, version, event_count, resume_time, error_type, message, provider_call_id, stack, status_code, info_type, new_model, previous_model, handoff_time, remote_session_id, repository, source_type, summary, messages_removed_during_truncation, performed_by, post_truncation_messages_length, post_truncation_tokens_in_messages, pre_truncation_messages_length, pre_truncation_tokens_in_messages, token_limit, tokens_removed_during_truncation, events_removed, up_to_event_id, code_changes, current_model, error_reason, model_metrics, session_start_time, shutdown_type, total_api_duration_ms, total_premium_requests, current_tokens, messages_length, checkpoint_number, checkpoint_path, compaction_tokens_used, error, messages_removed, post_compaction_tokens, pre_compaction_messages_length, pre_compaction_tokens, request_id, success, summary_content, tokens_removed, attachments, content, source, transformed_content, turn_id, intent, reasoning_id, delta_content, encrypted_content, message_id, parent_tool_call_id, reasoning_opaque, reasoning_text, tool_requests, total_response_size_bytes, api_call_id, cache_read_tokens, cache_write_tokens, cost, duration, initiator, input_tokens, model, output_tokens, quota_snapshots, reason, arguments, tool_call_id, tool_name, mcp_server_name, mcp_tool_name, partial_output, progress_message, is_user_requested, result, tool_telemetry, allowed_tools, name, path, agent_description, agent_display_name, agent_name, tools, hook_invocation_id, hook_type, input, output, metadata, role) |
705 | 707 |
|
706 | 708 | def to_dict(self) -> dict: |
707 | 709 | result: dict = {} |
@@ -805,6 +807,8 @@ def to_dict(self) -> dict: |
805 | 807 | result["preCompactionMessagesLength"] = from_union([to_float, from_none], self.pre_compaction_messages_length) |
806 | 808 | if self.pre_compaction_tokens is not None: |
807 | 809 | result["preCompactionTokens"] = from_union([to_float, from_none], self.pre_compaction_tokens) |
| 810 | + if self.request_id is not None: |
| 811 | + result["requestId"] = from_union([from_str, from_none], self.request_id) |
808 | 812 | if self.success is not None: |
809 | 813 | result["success"] = from_union([from_bool, from_none], self.success) |
810 | 814 | if self.summary_content is not None: |
|
0 commit comments