Documentation
¶
Index ¶
- Constants
- type Claude
- func (i *Claude) Actions() []core.Action
- func (i *Claude) Cleanup(ctx core.IntegrationCleanupContext) error
- func (i *Claude) Components() []core.Component
- func (i *Claude) Configuration() []configuration.Field
- func (i *Claude) Description() string
- func (i *Claude) HandleAction(ctx core.IntegrationActionContext) error
- func (i *Claude) HandleRequest(ctx core.HTTPRequestContext)
- func (i *Claude) Icon() string
- func (i *Claude) Instructions() string
- func (i *Claude) Label() string
- func (i *Claude) ListResources(resourceType string, ctx core.ListResourcesContext) ([]core.IntegrationResource, error)
- func (i *Claude) Name() string
- func (i *Claude) Sync(ctx core.SyncContext) error
- func (i *Claude) Triggers() []core.Trigger
- type Client
- type Configuration
- type CreateMessageRequest
- type CreateMessageResponse
- type Message
- type MessageContent
- type MessagePayload
- type MessageUsage
- type Model
- type ModelsResponse
- type TextPrompt
- func (c *TextPrompt) Actions() []core.Action
- func (c *TextPrompt) Cancel(ctx core.ExecutionContext) error
- func (c *TextPrompt) Cleanup(ctx core.SetupContext) error
- func (c *TextPrompt) Color() string
- func (c *TextPrompt) Configuration() []configuration.Field
- func (c *TextPrompt) Description() string
- func (c *TextPrompt) Documentation() string
- func (c *TextPrompt) ExampleOutput() map[string]any
- func (c *TextPrompt) Execute(ctx core.ExecutionContext) error
- func (c *TextPrompt) HandleAction(ctx core.ActionContext) error
- func (c *TextPrompt) HandleWebhook(ctx core.WebhookRequestContext) (int, error)
- func (c *TextPrompt) Icon() string
- func (c *TextPrompt) Label() string
- func (c *TextPrompt) Name() string
- func (c *TextPrompt) OutputChannels(configuration any) []core.OutputChannel
- func (c *TextPrompt) ProcessQueueItem(ctx core.ProcessQueueContext) (*uuid.UUID, error)
- func (c *TextPrompt) Setup(ctx core.SetupContext) error
- type TextPromptSpec
Constants ¶
View Source
const MessagePayloadType = "claude.message"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Claude ¶
type Claude struct{}
func (*Claude) Components ¶
func (*Claude) Configuration ¶
func (i *Claude) Configuration() []configuration.Field
func (*Claude) Description ¶
func (*Claude) HandleAction ¶
func (i *Claude) HandleAction(ctx core.IntegrationActionContext) error
func (*Claude) HandleRequest ¶
func (i *Claude) HandleRequest(ctx core.HTTPRequestContext)
func (*Claude) Instructions ¶
func (*Claude) ListResources ¶
func (i *Claude) ListResources(resourceType string, ctx core.ListResourcesContext) ([]core.IntegrationResource, error)
type Client ¶
func NewClient ¶
func NewClient(httpClient core.HTTPContext, ctx core.IntegrationContext) (*Client, error)
func (*Client) CreateMessage ¶
func (c *Client) CreateMessage(req CreateMessageRequest) (*CreateMessageResponse, error)
func (*Client) ListModels ¶
type Configuration ¶
type Configuration struct {
APIKey string `json:"apiKey"`
}
type CreateMessageRequest ¶
type CreateMessageResponse ¶
type CreateMessageResponse struct {
ID string `json:"id"`
Type string `json:"type"`
Role string `json:"role"`
Content []MessageContent `json:"content"`
Model string `json:"model"`
StopReason string `json:"stop_reason"`
StopSequence string `json:"stop_sequence,omitempty"`
Usage MessageUsage `json:"usage"`
}
type MessageContent ¶
type MessagePayload ¶
type MessagePayload struct {
ID string `json:"id"`
Model string `json:"model"`
Text string `json:"text"`
Usage *MessageUsage `json:"usage,omitempty"`
StopReason string `json:"stopReason,omitempty"`
Response *CreateMessageResponse `json:"response"`
}
type MessageUsage ¶
type ModelsResponse ¶
type ModelsResponse struct {
Data []Model `json:"data"`
}
type TextPrompt ¶
type TextPrompt struct{}
func (*TextPrompt) Actions ¶
func (c *TextPrompt) Actions() []core.Action
func (*TextPrompt) Cancel ¶
func (c *TextPrompt) Cancel(ctx core.ExecutionContext) error
func (*TextPrompt) Cleanup ¶
func (c *TextPrompt) Cleanup(ctx core.SetupContext) error
func (*TextPrompt) Color ¶
func (c *TextPrompt) Color() string
func (*TextPrompt) Configuration ¶
func (c *TextPrompt) Configuration() []configuration.Field
func (*TextPrompt) Description ¶
func (c *TextPrompt) Description() string
func (*TextPrompt) Documentation ¶
func (c *TextPrompt) Documentation() string
func (*TextPrompt) ExampleOutput ¶
func (c *TextPrompt) ExampleOutput() map[string]any
func (*TextPrompt) Execute ¶
func (c *TextPrompt) Execute(ctx core.ExecutionContext) error
func (*TextPrompt) HandleAction ¶
func (c *TextPrompt) HandleAction(ctx core.ActionContext) error
func (*TextPrompt) HandleWebhook ¶
func (c *TextPrompt) HandleWebhook(ctx core.WebhookRequestContext) (int, error)
func (*TextPrompt) Icon ¶
func (c *TextPrompt) Icon() string
func (*TextPrompt) Label ¶
func (c *TextPrompt) Label() string
func (*TextPrompt) Name ¶
func (c *TextPrompt) Name() string
func (*TextPrompt) OutputChannels ¶
func (c *TextPrompt) OutputChannels(configuration any) []core.OutputChannel
func (*TextPrompt) ProcessQueueItem ¶
func (c *TextPrompt) ProcessQueueItem(ctx core.ProcessQueueContext) (*uuid.UUID, error)
func (*TextPrompt) Setup ¶
func (c *TextPrompt) Setup(ctx core.SetupContext) error
Click to show internal directories.
Click to hide internal directories.