Add asynchronous machine over and out to shared MCP
This commit is contained in:
@@ -206,6 +206,15 @@ class McpSession:
|
||||
raise SessionError('Число машинных шагов должно быть 1..64')
|
||||
return self.call('step', {'count': count, 'owner': self.owner})
|
||||
|
||||
def step_over_instruction(self, count: int = 1):
|
||||
if not isinstance(count, int) or isinstance(count, bool) or count < 1 or count > 64:
|
||||
raise SessionError('Число машинных шагов должно быть 1..64')
|
||||
return self.call('step_over_instruction',
|
||||
{'count': count, 'owner': self.owner})
|
||||
|
||||
def step_out_instruction(self):
|
||||
return self.call('step_out_instruction', {'owner': self.owner})
|
||||
|
||||
def step_source(self, kind: str = 'into'):
|
||||
if kind not in ('into', 'over', 'out'):
|
||||
raise SessionError('kind должен быть into, over или out')
|
||||
|
||||
Reference in New Issue
Block a user