SystemExecutiveModifyRequest
Bases: OCIRequest
Request to modify the Executive system parameters. The response is either a SuccessResponse or an ErrorResponse.
Attributes:
treat_virtual_on_net_calls_as_internal (Optional[bool]):
consider_executive_on_hook_for_assistant_calls (Optional[bool]):
Source code in src/mercury_ocip_fast/commands/commands.py
| @dataclass(kw_only=True)
class SystemExecutiveModifyRequest(OCIRequest):
"""Request to modify the Executive system parameters.
The response is either a SuccessResponse or an ErrorResponse.
Attributes:
treat_virtual_on_net_calls_as_internal (Optional[bool]):
consider_executive_on_hook_for_assistant_calls (Optional[bool]):
"""
treat_virtual_on_net_calls_as_internal: Optional[bool] = field(
default=None, metadata={"alias": "treatVirtualOnNetCallsAsInternal"}
)
consider_executive_on_hook_for_assistant_calls: Optional[bool] = field(
default=None, metadata={"alias": "considerExecutiveOnHookForAssistantCalls"}
)
|
Responses
Bases: OCIResponseSource code in src/mercury_ocip_fast/commands/base_command.py
| class SuccessResponse(OCIResponse):
pass
|
Bases: OCIResponseSource code in src/mercury_ocip_fast/commands/base_command.py
| class ErrorResponse(OCIResponse):
errorCode: Optional[int] = None
summary: str
summaryEnglish: str
detail: Optional[str] = None
|
Example Usage
from mercury_ocip_fast.client import Client
from mercury_ocip_fast.commands import SystemExecutiveModifyRequest
client = Client()
command = SystemExecutiveModifyRequest(
treat_virtual_on_net_calls_as_internal=...,
consider_executive_on_hook_for_assistant_calls=...,
)
response = client.command(command)
print(response)
Example 2 with Raw Command
from mercury_ocip_fast.client import Client
client = Client()
response = client.raw_command("SystemExecutiveModifyRequest",
treat_virtual_on_net_calls_as_internal=...,
consider_executive_on_hook_for_assistant_calls=...,
)
print(response)