Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
Sessions *sessions.Service
Secrets *secrets.Service
Knowledge *knowledge.Service
Playbooks *playbooks.Service
// contains filtered or unexported fields
}
Client wraps access to all Devin services.
type HTTPDoer ¶
type HTTPDoer = httpclient.Doer
HTTPDoer mirrors httpclient.Doer so callers can provide custom clients.
type Option ¶
type Option func(*Client)
Option configures a Client during construction.
func WithBaseURL ¶
WithBaseURL overrides the default API base URL.
func WithHTTPClient ¶
WithHTTPClient injects a custom HTTP client implementation.
func WithLogger ¶
WithLogger replaces the default slog.Logger.
func WithRetry ¶
func WithRetry(cfg RetryConfig) Option
WithRetry customizes the retry behavior when calling Devin.
func WithTimeout ¶
WithTimeout overrides the timeout on the underlying *http.Client.
func WithUserAgent ¶
WithUserAgent overrides the default User-Agent header value.
type RetryConfig ¶
type RetryConfig = httpclient.RetryConfig
RetryConfig mirrors httpclient.RetryConfig for SDK options.
Directories
¶
| Path | Synopsis |
|---|---|
|
examples
|
|
|
knowledge/create
command
|
|
|
knowledge/delete
command
|
|
|
knowledge/list
command
|
|
|
knowledge/update
command
|
|
|
playbooks/create
command
|
|
|
playbooks/delete
command
|
|
|
playbooks/list
command
|
|
|
playbooks/update
command
|
|
|
secrets/create
command
|
|
|
secrets/delete
command
|
|
|
secrets/list
command
|
|
|
sessions/create
command
|
|
|
sessions/get
command
|
|
|
sessions/list
command
|
|
|
sessions/send_message
command
|
|
|
sessions/tags
command
|
|
|
sessions/terminate
command
|
|
|
internal
|
|
|
pkg
|
|
|
knowledge
Package knowledge provides client helpers for Devin's knowledge base, including listing folders, creating entries, and updating or deleting stored documents.
|
Package knowledge provides client helpers for Devin's knowledge base, including listing folders, creating entries, and updating or deleting stored documents. |
|
playbooks
Package playbooks offers CRUD helpers for Devin automation playbooks, allowing clients to list, retrieve, create, update, and delete scripts.
|
Package playbooks offers CRUD helpers for Devin automation playbooks, allowing clients to list, retrieve, create, update, and delete scripts. |
|
secrets
Package secrets manages credential storage within Devin by listing existing secrets and creating or deleting secure entries.
|
Package secrets manages credential storage within Devin by listing existing secrets and creating or deleting secure entries. |
|
sessions
Package sessions manages Devin session lifecycles, from creation and message exchange to attachments, tagging, and termination helpers.
|
Package sessions manages Devin session lifecycles, from creation and message exchange to attachments, tagging, and termination helpers. |
Click to show internal directories.
Click to hide internal directories.