fix issue wrong agent prologue for api (#2246)

### What problem does this PR solve?

#2242
### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)
This commit is contained in:
Kevin Hu
2024-09-04 19:11:55 +08:00
committed by GitHub
parent 0fe19f3fbc
commit 02fb7a88e3
2 changed files with 10 additions and 4 deletions

View File

@ -299,4 +299,7 @@ class Canvas(ABC):
pat = " => ".join([p.split(":")[0] for p in path[0:l]])
return pat + " => " + pat
return False
return
def get_prologue(self):
return self.components["begin"]["obj"]._param.prologue