MCPcopy Index your code
hub / github.com/github/copilot-sdk / from_dict

Method from_dict

python/copilot/generated/rpc.py:20970–21025  ·  view source on GitHub ↗
(obj: Any)

Source from the content-addressed store, hash-verified

20968
20969 @staticmethod
20970 def from_dict(obj: Any) -> 'SessionUpdateOptionsParams':
20971 assert isinstance(obj, dict)
20972 additional_content_exclusion_policies = from_union([lambda x: from_list(OptionsUpdateAdditionalContentExclusionPolicy.from_dict, x), from_none], obj.get("additionalContentExclusionPolicies"))
20973 agent_context = from_union([from_str, from_none], obj.get("agentContext"))
20974 allow_all_mcp_server_instructions = from_union([from_bool, from_none], obj.get("allowAllMcpServerInstructions"))
20975 ask_user_disabled = from_union([from_bool, from_none], obj.get("askUserDisabled"))
20976 available_tools = from_union([lambda x: from_list(from_str, x), from_none], obj.get("availableTools"))
20977 capi = from_union([CapiSessionOptions.from_dict, from_none], obj.get("capi"))
20978 client_name = from_union([from_str, from_none], obj.get("clientName"))
20979 coauthor_enabled = from_union([from_bool, from_none], obj.get("coauthorEnabled"))
20980 context_tier = from_union([OptionsUpdateContextTier, from_none], obj.get("contextTier"))
20981 continue_on_auto_mode = from_union([from_bool, from_none], obj.get("continueOnAutoMode"))
20982 copilot_url = from_union([from_str, from_none], obj.get("copilotUrl"))
20983 custom_agents_local_only = from_union([from_bool, from_none], obj.get("customAgentsLocalOnly"))
20984 disabled_instruction_sources = from_union([lambda x: from_list(from_str, x), from_none], obj.get("disabledInstructionSources"))
20985 disabled_skills = from_union([lambda x: from_list(from_str, x), from_none], obj.get("disabledSkills"))
20986 enable_file_hooks = from_union([from_bool, from_none], obj.get("enableFileHooks"))
20987 enable_host_git_operations = from_union([from_bool, from_none], obj.get("enableHostGitOperations"))
20988 enable_on_demand_instruction_discovery = from_union([from_bool, from_none], obj.get("enableOnDemandInstructionDiscovery"))
20989 enable_reasoning_summaries = from_union([from_bool, from_none], obj.get("enableReasoningSummaries"))
20990 enable_script_safety = from_union([from_bool, from_none], obj.get("enableScriptSafety"))
20991 enable_session_store = from_union([from_bool, from_none], obj.get("enableSessionStore"))
20992 enable_skills = from_union([from_bool, from_none], obj.get("enableSkills"))
20993 enable_streaming = from_union([from_bool, from_none], obj.get("enableStreaming"))
20994 env_value_mode = from_union([MCPSetEnvValueModeDetails, from_none], obj.get("envValueMode"))
20995 events_log_directory = from_union([from_str, from_none], obj.get("eventsLogDirectory"))
20996 excluded_builtin_agents = from_union([lambda x: from_list(from_str, x), from_none], obj.get("excludedBuiltinAgents"))
20997 excluded_tools = from_union([lambda x: from_list(from_str, x), from_none], obj.get("excludedTools"))
20998 feature_flags = from_union([lambda x: from_dict(from_bool, x), from_none], obj.get("featureFlags"))
20999 installed_plugins = from_union([lambda x: from_list(SessionInstalledPlugin.from_dict, x), from_none], obj.get("installedPlugins"))
21000 integration_id = from_union([from_str, from_none], obj.get("integrationId"))
21001 is_experimental_mode = from_union([from_bool, from_none], obj.get("isExperimentalMode"))
21002 log_interactive_shells = from_union([from_bool, from_none], obj.get("logInteractiveShells"))
21003 lsp_client_name = from_union([from_str, from_none], obj.get("lspClientName"))
21004 manage_schedule_enabled = from_union([from_bool, from_none], obj.get("manageScheduleEnabled"))
21005 max_inline_binary_bytes = from_union([from_int, from_none], obj.get("maxInlineBinaryBytes"))
21006 model = from_union([from_str, from_none], obj.get("model"))
21007 model_capabilities_overrides = from_union([ModelCapabilitiesOverride.from_dict, from_none], obj.get("modelCapabilitiesOverrides"))
21008 organization_custom_instructions = from_union([from_str, from_none], obj.get("organizationCustomInstructions"))
21009 provider = from_union([ProviderConfig.from_dict, from_none], obj.get("provider"))
21010 reasoning_effort = from_union([from_str, from_none], obj.get("reasoningEffort"))
21011 reasoning_summary = from_union([ReasoningSummary, from_none], obj.get("reasoningSummary"))
21012 running_in_interactive_mode = from_union([from_bool, from_none], obj.get("runningInInteractiveMode"))
21013 sandbox_config = from_union([SandboxConfig.from_dict, from_none], obj.get("sandboxConfig"))
21014 session_capabilities = from_union([lambda x: from_list(SessionCapability, x), from_none], obj.get("sessionCapabilities"))
21015 session_limits = from_union([SessionLimitsConfig.from_dict, from_none], obj.get("sessionLimits"))
21016 shell_init_profile = from_union([from_str, from_none], obj.get("shellInitProfile"))
21017 shell_process_flags = from_union([lambda x: from_list(from_str, x), from_none], obj.get("shellProcessFlags"))
21018 skill_directories = from_union([lambda x: from_list(from_str, x), from_none], obj.get("skillDirectories"))
21019 skip_custom_instructions = from_union([from_bool, from_none], obj.get("skipCustomInstructions"))
21020 skip_embedding_retrieval = from_union([from_bool, from_none], obj.get("skipEmbeddingRetrieval"))
21021 suppress_custom_agent_prompt = from_union([from_bool, from_none], obj.get("suppressCustomAgentPrompt"))
21022 tool_filter_precedence = from_union([OptionsUpdateToolFilterPrecedence, from_none], obj.get("toolFilterPrecedence"))
21023 trajectory_file = from_union([from_str, from_none], obj.get("trajectoryFile"))
21024 working_directory = from_union([from_str, from_none], obj.get("workingDirectory"))
21025 return SessionUpdateOptionsParams(additional_content_exclusion_policies, agent_context, allow_all_mcp_server_instructions, ask_user_disabled, available_tools, capi, client_name, coauthor_enabled, context_tier, continue_on_auto_mode, copilot_url, custom_agents_local_only, disabled_instruction_sources, disabled_skills, enable_file_hooks, enable_host_git_operations, enable_on_demand_instruction_discovery, enable_reasoning_summaries, enable_script_safety, enable_session_store, enable_skills, enable_streaming, env_value_mode, events_log_directory, excluded_builtin_agents, excluded_tools, feature_flags, installed_plugins, integration_id, is_experimental_mode, log_interactive_shells, lsp_client_name, manage_schedule_enabled, max_inline_binary_bytes, model, model_capabilities_overrides, organization_custom_instructions, provider, reasoning_effort, reasoning_summary, running_in_interactive_mode, sandbox_config, session_capabilities, session_limits, shell_init_profile, shell_process_flags, skill_directories, skip_custom_instructions, skip_embedding_retrieval, suppress_custom_agent_prompt, tool_filter_precedence, trajectory_file, working_directory)
21026
21027 def to_dict(self) -> dict:

Callers

nothing calls this directly

Calls 5

from_unionFunction · 0.70
from_listFunction · 0.70
from_dictFunction · 0.70
getMethod · 0.45

Tested by

no test coverage detected