-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
optimize readability in composio and make sure e2b is concurrent safe
- Loading branch information
1 parent
8bcb569
commit 2e523c3
Showing
15 changed files
with
186 additions
and
169 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,13 +1,21 @@ | ||
# composio-github-star | ||
|
||
Adapted from the [quickstart](https://docs.composio.dev/introduction/intro/quickstart) guide. | ||
|
||
Install the `composio` CLI and login to your account (also add github to your account if you haven't already) | ||
|
||
```bash | ||
pip install -U composio_core composio_openai | ||
|
||
pip install composio-langchain | ||
pip install langchain-groq | ||
composio login | ||
|
||
#Connect your Github so agents can use it | ||
composio add github | ||
|
||
#Check all different apps which you can connect with | ||
composio apps | ||
``` | ||
|
||
Congratulations! You’ve just: | ||
|
||
🔐 Authenticated your GitHub account with Composio | ||
🛠 Fetched GitHub tools for the llm | ||
⭐ Instructed the AI to star the conneroisu/groq-go repository | ||
✅ Successfully executed the action on GitHub |
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
Submodule composio
deleted from
f26383
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
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,2 @@ | ||
// Package e2b provides an e2b client for groq-go. | ||
package e2b |
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,41 @@ | ||
package e2b | ||
|
||
import ( | ||
"log/slog" | ||
"net/http" | ||
) | ||
|
||
// WithBaseURL sets the base URL for the e2b sandbox. | ||
func WithBaseURL(baseURL string) Option { | ||
return func(s *Sandbox) { s.baseURL = baseURL } | ||
} | ||
|
||
// WithClient sets the client for the e2b sandbox. | ||
func WithClient(client *http.Client) Option { | ||
return func(s *Sandbox) { s.client = client } | ||
} | ||
|
||
// WithLogger sets the logger for the e2b sandbox. | ||
func WithLogger(logger *slog.Logger) Option { | ||
return func(s *Sandbox) { s.logger = logger } | ||
} | ||
|
||
// WithTemplate sets the template for the e2b sandbox. | ||
func WithTemplate(template SandboxTemplate) Option { | ||
return func(s *Sandbox) { s.Template = template } | ||
} | ||
|
||
// WithMetaData sets the meta data for the e2b sandbox. | ||
func WithMetaData(metaData map[string]string) Option { | ||
return func(s *Sandbox) { s.Metadata = metaData } | ||
} | ||
|
||
// WithCwd sets the current working directory. | ||
func WithCwd(cwd string) Option { | ||
return func(s *Sandbox) { s.Cwd = cwd } | ||
} | ||
|
||
// WithWsURL sets the websocket url for the e2b sandbox. | ||
func WithWsURL(wsURL func(s *Sandbox) string) Option { | ||
return func(s *Sandbox) { s.wsURL = wsURL } | ||
} |
Oops, something went wrong.