fix(ptc): preserve policy and evaluation lifecycle across memory runs
This commit is contained in:
1 parent
3a0c2ae3bb
commit
bf95e3a74b
33 files changed
+155
-118
No files matched your search
@@ -815,6 +815,10 @@ export class PythonPtcRuntime extends PtcRuntime {
|
||||
readonly language = 'python'
|
||||
readonly isolation = 'process'
|
||||
|
||||
override get executionInstructions(): string {
|
||||
return 'The program is the body of an async Python function. Top-level await and return are supported. Emit output with print(...) or return a lossless JSON value. Only printed values and the returned value become program output. Each call runs in a fresh Python process; variables and imported modules do not persist across calls.'
|
||||
}
|
||||
|
||||
private readonly config: ResolvedConfig
|
||||
private readonly pythonBin: string
|
||||
// The frame cap this instance enforces: the protocol cap, or the host's
|
||||
|
||||
Reference in new issue
Block a user