-
Notifications
You must be signed in to change notification settings - Fork 1
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
26e913d
commit 22bda71
Showing
5 changed files
with
146 additions
and
27 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
# composio | ||
|
||
Compose AI is a powerful tool for creating complex and high-quality compositions of ai tools. This package provides a client for the composio api easily accessible through the groq-go library. | ||
|
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 |
---|---|---|
@@ -1 +1,28 @@ | ||
package composio | ||
|
||
import ( | ||
"testing" | ||
|
||
"github.com/conneroisu/groq-go/pkg/test" | ||
"github.com/stretchr/testify/assert" | ||
) | ||
|
||
// TestGetTools tests the ability of the composio client to get tools. | ||
func TestGetTools(t *testing.T) { | ||
if !test.IsUnitTest() { | ||
t.Skip() | ||
} | ||
a := assert.New(t) | ||
key, err := test.GetAPIKey("COMPOSIO_API_KEY") | ||
a.NoError(err) | ||
client, err := NewComposer( | ||
key, | ||
WithLogger(test.DefaultLogger), | ||
) | ||
a.NoError(err) | ||
ts, err := client.GetTools(ToolsParams{ | ||
Tags: "Authentication", | ||
}) | ||
a.NoError(err) | ||
a.NotEmpty(ts) | ||
} |
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 |
---|---|---|
@@ -1,3 +1,4 @@ | ||
curl --request GET \ | ||
--url https://backend.composio.dev/api/v2/actions \ | ||
--header 'X-API-Key: awcv1natkyr6336c1x2f8q' > composio.json | ||
echo "APIKEY: $COMPOSIO_API_KEY" | ||
apikey=$COMPOSIO_API_KEY | ||
curl --request GET --url https://backend.composio.dev/api/v2/actions?tags=Authentication --header 'X-API-Key: '$apikey \ | ||
> composio.json |
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