bugfix
This commit is contained in:
parent
12079fcc34
commit
7fbf7f7a31
@ -4,6 +4,7 @@ from typing import List, Optional
|
|||||||
from dataclasses import dataclass, field
|
from dataclasses import dataclass, field
|
||||||
from pydantic import BaseModel, Field, ValidationError
|
from pydantic import BaseModel, Field, ValidationError
|
||||||
from typing import Literal
|
from typing import Literal
|
||||||
|
from appPublic.worker import awaitify
|
||||||
from .skillkit_wrapper import SkillkitWrapper
|
from .skillkit_wrapper import SkillkitWrapper
|
||||||
|
|
||||||
# ---------------------------
|
# ---------------------------
|
||||||
@ -271,11 +272,13 @@ async def skillagent(llm, apikey, user_skillroot, sys_skillroot):
|
|||||||
user_reply = input()
|
user_reply = input()
|
||||||
result = await agent.resume(result["state"], user_reply)
|
result = await agent.resume(result["state"], user_reply)
|
||||||
if result['type'] == 'skill_call':
|
if result['type'] == 'skill_call':
|
||||||
agent.skillkit.execute_skill_script(
|
f = awaitify(agent.skillkit.execute_skill_script)
|
||||||
|
rzt = await f(
|
||||||
result['skill'],
|
result['skill'],
|
||||||
result['script'],
|
result['script'],
|
||||||
params=result['params']
|
params=result['params']
|
||||||
)
|
)
|
||||||
|
print(rzt)
|
||||||
else:
|
else:
|
||||||
print(result)
|
print(result)
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user