Skip to content

Commit

Permalink
fix: modify agent container and faber agent
Browse files Browse the repository at this point in the history
Signed-off-by: tra371 <[email protected]>
  • Loading branch information
tra371 committed Mar 4, 2024
1 parent 559231a commit 3977fe5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 2 additions & 0 deletions demo/runners/agent_container.py
Original file line number Diff line number Diff line change
Expand Up @@ -1472,11 +1472,13 @@ async def create_agent_with_args(args, ident: str = None, extra_args: list = Non

if "cred_type" in args and args.cred_type not in [
CRED_FORMAT_INDY,
CRED_FORMAT_VC_DI,
]:
public_did = None
aip = 20
elif "cred_type" in args and args.cred_type in [
CRED_FORMAT_INDY,
CRED_FORMAT_VC_DI,
]:
public_did = True
else:
Expand Down
6 changes: 4 additions & 2 deletions demo/runners/faber.py
Original file line number Diff line number Diff line change
Expand Up @@ -523,7 +523,7 @@ async def main(args):
"birthdate_dateint",
"timestamp",
]
if faber_agent.cred_type == CRED_FORMAT_INDY:
if faber_agent.cred_type in [CRED_FORMAT_INDY, CRED_FORMAT_VC_DI]:
faber_agent.public_did = True
await faber_agent.initialize(
the_agent=agent,
Expand All @@ -535,7 +535,9 @@ async def main(args):
else False
),
)
elif faber_agent.cred_type in [CRED_FORMAT_JSON_LD, CRED_FORMAT_VC_DI]:
elif faber_agent.cred_type in [
CRED_FORMAT_JSON_LD,
]:
faber_agent.public_did = True
await faber_agent.initialize(the_agent=agent)
else:
Expand Down

0 comments on commit 3977fe5

Please sign in to comment.