-
Notifications
You must be signed in to change notification settings - Fork 917
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1e0ab6c
commit 193c764
Showing
3 changed files
with
126 additions
and
74 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
from datetime import datetime, timezone | ||
from uuid import uuid4 | ||
|
||
from ward import test | ||
|
||
from agents_api.activities.utils import get_integration_arguments | ||
from agents_api.autogen.Tools import DummyIntegrationDef, Tool | ||
|
||
|
||
@test("get_integration_arguments: dummy search") | ||
async def _(): | ||
tool = Tool( | ||
id=uuid4(), | ||
name="tool1", | ||
type="integration", | ||
integration=DummyIntegrationDef(), | ||
created_at=datetime.now(timezone.utc), | ||
updated_at=datetime.now(timezone.utc), | ||
) | ||
result = get_integration_arguments(tool) | ||
|
||
assert result == { | ||
"type": "object", | ||
"properties": {}, | ||
"required": [], | ||
} |