Skip to content

Commit d4e7a32

Browse files
AdarshAcharya5dmytrostruk
authored andcommitted
Python: Fixed type error in plan.run_next_step_async method (microsoft#3231)
### Description This PR fixes microsoft#3219 ### Contribution Checklist - [X] The code builds clean without any errors or warnings - [X] The PR follows the [SK Contribution Guidelines](https://github.com/microsoft/semantic-kernel/blob/main/CONTRIBUTING.md) and the [pre-submission formatting script](https://github.com/microsoft/semantic-kernel/blob/main/CONTRIBUTING.md#development-scripts) raises no violations - [X] All unit tests pass, and I have added new tests where possible - [X] I didn't break anyone 😄 --------- Co-authored-by: Dmytro Struk <[email protected]>
1 parent f9d3ca9 commit d4e7a32

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

‎python/semantic_kernel/kernel.py‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -356,9 +356,11 @@ def register_memory(self, memory: SemanticTextMemoryBase) -> None:
356356
def register_memory_store(self, memory_store: MemoryStoreBase) -> None:
357357
self.use_memory(memory_store)
358358

359-
def create_new_context(self) -> SKContext:
359+
def create_new_context(
360+
self, variables: Optional[ContextVariables] = None
361+
) -> SKContext:
360362
return SKContext(
361-
ContextVariables(),
363+
ContextVariables() if not variables else variables,
362364
self._memory,
363365
self.skills,
364366
self._log,

0 commit comments

Comments
 (0)