Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions ad_hoc.go
Original file line number Diff line number Diff line change
Expand Up @@ -367,10 +367,11 @@ func (d *DeprecatedPromptRequestInput) Accept(visitor DeprecatedPromptRequestInp

// The final data event returned indicating that the stream has ended and all final resolved values from the model can be found.
type FulfilledAdHocExecutePromptEvent struct {
Outputs []*PromptOutput `json:"outputs" url:"outputs"`
ExecutionId string `json:"execution_id" url:"execution_id"`
Meta *AdHocFulfilledPromptExecutionMeta `json:"meta,omitempty" url:"meta,omitempty"`
state string
Outputs []*PromptOutput `json:"outputs" url:"outputs"`
ExecutionId string `json:"execution_id" url:"execution_id"`
Meta *AdHocFulfilledPromptExecutionMeta `json:"meta,omitempty" url:"meta,omitempty"`
ChatMessageMetadata map[string]interface{} `json:"chat_message_metadata,omitempty" url:"chat_message_metadata,omitempty"`
state string

extraProperties map[string]interface{}
_rawJSON json.RawMessage
Expand Down
2 changes: 1 addition & 1 deletion core/request_option.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ func (r *RequestOptions) cloneHeader() http.Header {
headers := r.HTTPHeader.Clone()
headers.Set("X-Fern-Language", "Go")
headers.Set("X-Fern-SDK-Name", "github.com/vellum-ai/vellum-client-go")
headers.Set("X-Fern-SDK-Version", "v1.13.8")
headers.Set("X-Fern-SDK-Version", "v0.0.4043")
return headers
}

Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/vellum-ai/vellum-client-go

// Version: v1.13.8
// Version: v1.13.9

go 1.18

Expand Down
19 changes: 19 additions & 0 deletions integrations.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,25 @@ import (
core "github.com/vellum-ai/vellum-client-go/core"
)

type ExecuteIntegrationToolRequest struct {
// The response fields to expand for more information. Supported values: 'logs' - includes execution logs from Composio
Expand []*string `json:"-" url:"expand,omitempty"`
Body ComponentsSchemasComposioExecuteToolRequest `json:"-" url:"-"`
}

func (e *ExecuteIntegrationToolRequest) UnmarshalJSON(data []byte) error {
var body ComponentsSchemasComposioExecuteToolRequest
if err := json.Unmarshal(data, &body); err != nil {
return err
}
e.Body = body
return nil
}

func (e *ExecuteIntegrationToolRequest) MarshalJSON() ([]byte, error) {
return json.Marshal(e.Body)
}

type IntegrationsListRequest struct {
// * `COMPOSIO` - Composio
IntegrationProvider *string `json:"-" url:"integration_provider,omitempty"`
Expand Down
10 changes: 9 additions & 1 deletion integrations/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ func (c *Client) ExecuteIntegrationTool(
integrationProvider string,
// The tool's unique name, as specified by the integration provider
toolName string,
request vellumclientgo.ComponentsSchemasComposioExecuteToolRequest,
request *vellumclientgo.ExecuteIntegrationToolRequest,
opts ...option.RequestOption,
) (vellumclientgo.ComponentsSchemasComposioExecuteToolResponse, error) {
options := core.NewRequestOptions(opts...)
Expand All @@ -140,6 +140,14 @@ func (c *Client) ExecuteIntegrationTool(
toolName,
)

queryParams, err := core.QueryValues(request)
if err != nil {
return nil, err
}
if len(queryParams) > 0 {
endpointURL += "?" + queryParams.Encode()
}

headers := core.MergeHeaders(c.header.Clone(), options.ToHeader())

errorDecoder := func(statusCode int, body io.Reader) error {
Expand Down
36 changes: 29 additions & 7 deletions types.go
Original file line number Diff line number Diff line change
Expand Up @@ -6733,10 +6733,11 @@ func (f FinishReasonEnum) Ptr() *FinishReasonEnum {

// The final data event returned indicating that the stream has ended and all final resolved values from the model can be found.
type FulfilledExecutePromptEvent struct {
Outputs []*PromptOutput `json:"outputs" url:"outputs"`
ExecutionId string `json:"execution_id" url:"execution_id"`
Meta *FulfilledPromptExecutionMeta `json:"meta,omitempty" url:"meta,omitempty"`
state string
Outputs []*PromptOutput `json:"outputs" url:"outputs"`
ExecutionId string `json:"execution_id" url:"execution_id"`
Meta *FulfilledPromptExecutionMeta `json:"meta,omitempty" url:"meta,omitempty"`
ChatMessageMetadata map[string]interface{} `json:"chat_message_metadata,omitempty" url:"chat_message_metadata,omitempty"`
state string

extraProperties map[string]interface{}
_rawJSON json.RawMessage
Expand Down Expand Up @@ -6807,9 +6808,10 @@ type FulfilledExecutePromptResponse struct {
// The subset of the raw response from the model that the request opted into with `expand_raw`.
Raw map[string]interface{} `json:"raw,omitempty" url:"raw,omitempty"`
// The ID of the execution.
ExecutionId string `json:"execution_id" url:"execution_id"`
Outputs []*PromptOutput `json:"outputs" url:"outputs"`
state string
ExecutionId string `json:"execution_id" url:"execution_id"`
Outputs []*PromptOutput `json:"outputs" url:"outputs"`
ChatMessageMetadata map[string]interface{} `json:"chat_message_metadata,omitempty" url:"chat_message_metadata,omitempty"`
state string

extraProperties map[string]interface{}
_rawJSON json.RawMessage
Expand Down Expand Up @@ -9376,6 +9378,7 @@ func (i *Integration) String() string {
// * `GITHUB` - Github
// * `GOOGLE_SHEETS` - Google Sheets
// * `GOOGLE_CALENDAR` - Google Calendar
// * `GOOGLE_CLASSROOM` - Google Classroom
// * `GOOGLE_DRIVE` - Google Drive
// * `GMAIL` - Gmail
// * `GOOGLE_ADS` - Google Ads
Expand Down Expand Up @@ -9410,6 +9413,7 @@ func (i *Integration) String() string {
// * `FIGMA` - Figma
// * `FIREFLIES` - Fireflies
// * `GOOGLE_MAPS` - Google Maps
// * `GOOGLEMEET` - Google Meet
// * `HEYGEN` - HeyGen
// * `JIRA` - Jira
// * `JUNGLESCOUT` - Jungle Scout
Expand All @@ -9420,6 +9424,7 @@ func (i *Integration) String() string {
// * `PERPLEXITY` - Perplexity
// * `POSTHOG` - PostHog
// * `PRODUCTBOARD` - Productboard
// * `QUICKBOOKS` - QuickBooks
// * `REDDIT` - Reddit
// * `SALESFORCE` - Salesforce
// * `SEMRUSH` - Semrush
Expand Down Expand Up @@ -9449,11 +9454,13 @@ func (i *Integration) String() string {
// * `DISCORD` - Discord
// * `DOCUSIGN` - DocuSign
// * `TRELLO` - Trello
// * `TWITTER` - Twitter
// * `HEYREACH` - HeyReach
// * `ACTIVE_CAMPAIGN` - Active Campaign
// * `CUSTOMER_IO` - Customer.io
// * `SEGMENT` - Segment
// * `WHATSAPP` - WhatsApp
// * `YOUTUBE` - YouTube
type IntegrationName string

const (
Expand Down Expand Up @@ -9481,6 +9488,7 @@ const (
IntegrationNameGithub IntegrationName = "GITHUB"
IntegrationNameGoogleSheets IntegrationName = "GOOGLE_SHEETS"
IntegrationNameGoogleCalendar IntegrationName = "GOOGLE_CALENDAR"
IntegrationNameGoogleClassroom IntegrationName = "GOOGLE_CLASSROOM"
IntegrationNameGoogleDrive IntegrationName = "GOOGLE_DRIVE"
IntegrationNameGmail IntegrationName = "GMAIL"
IntegrationNameGoogleAds IntegrationName = "GOOGLE_ADS"
Expand Down Expand Up @@ -9515,6 +9523,7 @@ const (
IntegrationNameFigma IntegrationName = "FIGMA"
IntegrationNameFireflies IntegrationName = "FIREFLIES"
IntegrationNameGoogleMaps IntegrationName = "GOOGLE_MAPS"
IntegrationNameGooglemeet IntegrationName = "GOOGLEMEET"
IntegrationNameHeygen IntegrationName = "HEYGEN"
IntegrationNameJira IntegrationName = "JIRA"
IntegrationNameJunglescout IntegrationName = "JUNGLESCOUT"
Expand All @@ -9525,6 +9534,7 @@ const (
IntegrationNamePerplexity IntegrationName = "PERPLEXITY"
IntegrationNamePosthog IntegrationName = "POSTHOG"
IntegrationNameProductboard IntegrationName = "PRODUCTBOARD"
IntegrationNameQuickbooks IntegrationName = "QUICKBOOKS"
IntegrationNameReddit IntegrationName = "REDDIT"
IntegrationNameSalesforce IntegrationName = "SALESFORCE"
IntegrationNameSemrush IntegrationName = "SEMRUSH"
Expand Down Expand Up @@ -9554,11 +9564,13 @@ const (
IntegrationNameDiscord IntegrationName = "DISCORD"
IntegrationNameDocusign IntegrationName = "DOCUSIGN"
IntegrationNameTrello IntegrationName = "TRELLO"
IntegrationNameTwitter IntegrationName = "TWITTER"
IntegrationNameHeyreach IntegrationName = "HEYREACH"
IntegrationNameActiveCampaign IntegrationName = "ACTIVE_CAMPAIGN"
IntegrationNameCustomerIo IntegrationName = "CUSTOMER_IO"
IntegrationNameSegment IntegrationName = "SEGMENT"
IntegrationNameWhatsapp IntegrationName = "WHATSAPP"
IntegrationNameYoutube IntegrationName = "YOUTUBE"
)

func NewIntegrationNameFromString(s string) (IntegrationName, error) {
Expand Down Expand Up @@ -9611,6 +9623,8 @@ func NewIntegrationNameFromString(s string) (IntegrationName, error) {
return IntegrationNameGoogleSheets, nil
case "GOOGLE_CALENDAR":
return IntegrationNameGoogleCalendar, nil
case "GOOGLE_CLASSROOM":
return IntegrationNameGoogleClassroom, nil
case "GOOGLE_DRIVE":
return IntegrationNameGoogleDrive, nil
case "GMAIL":
Expand Down Expand Up @@ -9679,6 +9693,8 @@ func NewIntegrationNameFromString(s string) (IntegrationName, error) {
return IntegrationNameFireflies, nil
case "GOOGLE_MAPS":
return IntegrationNameGoogleMaps, nil
case "GOOGLEMEET":
return IntegrationNameGooglemeet, nil
case "HEYGEN":
return IntegrationNameHeygen, nil
case "JIRA":
Expand All @@ -9699,6 +9715,8 @@ func NewIntegrationNameFromString(s string) (IntegrationName, error) {
return IntegrationNamePosthog, nil
case "PRODUCTBOARD":
return IntegrationNameProductboard, nil
case "QUICKBOOKS":
return IntegrationNameQuickbooks, nil
case "REDDIT":
return IntegrationNameReddit, nil
case "SALESFORCE":
Expand Down Expand Up @@ -9757,6 +9775,8 @@ func NewIntegrationNameFromString(s string) (IntegrationName, error) {
return IntegrationNameDocusign, nil
case "TRELLO":
return IntegrationNameTrello, nil
case "TWITTER":
return IntegrationNameTwitter, nil
case "HEYREACH":
return IntegrationNameHeyreach, nil
case "ACTIVE_CAMPAIGN":
Expand All @@ -9767,6 +9787,8 @@ func NewIntegrationNameFromString(s string) (IntegrationName, error) {
return IntegrationNameSegment, nil
case "WHATSAPP":
return IntegrationNameWhatsapp, nil
case "YOUTUBE":
return IntegrationNameYoutube, nil
}
var t IntegrationName
return "", fmt.Errorf("%s is not a valid %T", s, t)
Expand Down
6 changes: 6 additions & 0 deletions workflow_deployments.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,18 @@ type ExecuteWorkflowDeploymentStreamRequest struct {
}

type WorkflowDeploymentsListRequest struct {
// has_story_config
HasStoryConfig *string `json:"-" url:"has_story_config,omitempty"`
// is_public
IsPublic *string `json:"-" url:"is_public,omitempty"`
// Number of results to return per page.
Limit *int `json:"-" url:"limit,omitempty"`
// The initial index from which to return the results.
Offset *int `json:"-" url:"offset,omitempty"`
// Which field to use when ordering the results.
Ordering *string `json:"-" url:"ordering,omitempty"`
// owned_by
OwnedBy *string `json:"-" url:"owned_by,omitempty"`
// status
Status *WorkflowDeploymentsListRequestStatus `json:"-" url:"status,omitempty"`
}
Expand Down