apiclient

package module
v0.0.0-...-d89d04d Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 16, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	BaseURL string
	Token   string
	Cookie  *http.Cookie
	// contains filtered or unexported fields
}

func (*Client) AuthenticateWorkflow

func (c *Client) AuthenticateWorkflow(ctx context.Context, wfID string) (*types.InvokeResponse, error)

func (*Client) Create

func (c *Client) Create(ctx context.Context, typeName string, body []byte) (string, error)

func (*Client) CreateAgent

func (c *Client) CreateAgent(ctx context.Context, agent types.AgentManifest) (*types.Agent, error)

func (*Client) CreateToolReference

func (c *Client) CreateToolReference(ctx context.Context, manifest types.ToolReferenceManifest) (*types.ToolReference, error)

func (*Client) CreateWorkflow

func (c *Client) CreateWorkflow(ctx context.Context, workflow types.WorkflowManifest) (*types.Workflow, error)

func (*Client) DebugRun

func (c *Client) DebugRun(ctx context.Context, runID string) (result *types.RunDebug, err error)

func (*Client) DeleteAgent

func (c *Client) DeleteAgent(ctx context.Context, id string) error

func (*Client) DeleteCredential

func (c *Client) DeleteCredential(ctx context.Context, name string, opts DeleteCredentialsOptions) (err error)

func (*Client) DeleteEmailReceiver

func (c *Client) DeleteEmailReceiver(ctx context.Context, id string) error

func (*Client) DeleteRun

func (c *Client) DeleteRun(ctx context.Context, id string) error

func (*Client) DeleteThread

func (c *Client) DeleteThread(ctx context.Context, id string) error

func (*Client) DeleteToolReference

func (c *Client) DeleteToolReference(ctx context.Context, id string, toolType types.ToolReferenceType) error

func (*Client) DeleteWebhook

func (c *Client) DeleteWebhook(ctx context.Context, id string) error

func (*Client) DeleteWorkflow

func (c *Client) DeleteWorkflow(ctx context.Context, id string) error

func (*Client) GetAgent

func (c *Client) GetAgent(ctx context.Context, id string) (*types.Agent, error)

func (*Client) GetEmailReceiver

func (c *Client) GetEmailReceiver(ctx context.Context, id string) (*types.EmailReceiver, error)

func (*Client) GetRun

func (c *Client) GetRun(ctx context.Context, id string) (result *types.Run, err error)

func (*Client) GetThread

func (c *Client) GetThread(ctx context.Context, threadID string) (result *types.Thread, err error)

func (*Client) GetToolReference

func (c *Client) GetToolReference(ctx context.Context, id string) (result *types.ToolReference, _ error)

func (*Client) GetWebhook

func (c *Client) GetWebhook(ctx context.Context, id string) (result *types.Webhook, _ error)

func (*Client) GetWorkflow

func (c *Client) GetWorkflow(ctx context.Context, id string) (*types.Workflow, error)

func (*Client) Invoke

func (c *Client) Invoke(ctx context.Context, agentID string, input string, opts InvokeOptions) (*types.InvokeResponse, error)

func (*Client) ListAgents

func (c *Client) ListAgents(ctx context.Context, opts ListAgentsOptions) (result types.AgentList, err error)

func (*Client) ListCredentials

func (c *Client) ListCredentials(ctx context.Context, opts ListCredentialsOptions) (result types.CredentialList, err error)

func (*Client) ListEmailReceivers

func (c *Client) ListEmailReceivers(ctx context.Context) (result types.EmailReceiverList, _ error)

func (*Client) ListFiles

func (c *Client) ListFiles(ctx context.Context, opts ListFileOptions) (result types.FileList, err error)

func (*Client) ListRuns

func (c *Client) ListRuns(ctx context.Context, opts ListRunsOptions) (result types.RunList, err error)

func (*Client) ListThreads

func (c *Client) ListThreads(ctx context.Context, opts ListThreadsOptions) (result types.ThreadList, err error)

func (*Client) ListToolReferences

func (c *Client) ListToolReferences(ctx context.Context, opts ListToolReferencesOptions) (result types.ToolReferenceList, _ error)

func (*Client) ListWebhooks

func (c *Client) ListWebhooks(ctx context.Context) (result types.WebhookList, _ error)

func (*Client) ListWorkflowExecutions

func (c *Client) ListWorkflowExecutions(ctx context.Context, workflowID string, opts ListWorkflowExecutionsOptions) (result types.WorkflowExecutionList, err error)

func (*Client) ListWorkflows

func (c *Client) ListWorkflows(ctx context.Context, opts ListWorkflowsOptions) (result types.WorkflowList, err error)

func (*Client) PromptResponse

func (c *Client) PromptResponse(ctx context.Context, resp types.PromptResponse) error

func (*Client) RunEvents

func (c *Client) RunEvents(ctx context.Context, runID string) (result <-chan types.Progress, err error)

func (*Client) StreamRuns

func (c *Client) StreamRuns(ctx context.Context, opts ListRunsOptions) (result <-chan types.Run, err error)

func (*Client) ThreadEvents

func (c *Client) ThreadEvents(ctx context.Context, threadID string, opts ThreadEventsOptions) (result <-chan types.Progress, err error)

func (*Client) UpdateAgent

func (c *Client) UpdateAgent(ctx context.Context, id string, manifest types.AgentManifest) (*types.Agent, error)

func (*Client) UpdateThread

func (c *Client) UpdateThread(ctx context.Context, id string, thread types.ThreadManifest) (*types.Thread, error)

func (*Client) UpdateToolReference

func (c *Client) UpdateToolReference(ctx context.Context, id, reference string) (*types.ToolReference, error)

func (*Client) UpdateWorkflow

func (c *Client) UpdateWorkflow(ctx context.Context, id string, manifest types.WorkflowManifest) (*types.Workflow, error)

func (*Client) WithCookie

func (c *Client) WithCookie(cookie *http.Cookie) *Client

func (*Client) WithToken

func (c *Client) WithToken(token string) *Client

func (*Client) WithTokenFetcher

func (c *Client) WithTokenFetcher(f func(context.Context, string) (string, error)) *Client

type DeleteCredentialsOptions

type DeleteCredentialsOptions struct {
	AgentID    string
	WorkflowID string
	ThreadID   string
}

type InvokeOptions

type InvokeOptions struct {
	ThreadID       string
	WorkflowStepID string
	Async          bool
}

type ListAgentsOptions

type ListAgentsOptions struct {
	Alias string
}

type ListCredentialsOptions

type ListCredentialsOptions struct {
	AgentID    string
	WorkflowID string
	ThreadID   string
}

type ListFileOptions

type ListFileOptions struct {
	AgentID    string
	WorkflowID string
	ThreadID   string
}

type ListRunsOptions

type ListRunsOptions struct {
	AgentID  string
	ThreadID string
}

type ListThreadsOptions

type ListThreadsOptions struct {
	AgentID string
}

type ListToolReferencesOptions

type ListToolReferencesOptions struct {
	ToolType types.ToolReferenceType
}

type ListWorkflowExecutionsOptions

type ListWorkflowExecutionsOptions struct {
	ThreadID string
}

type ListWorkflowsOptions

type ListWorkflowsOptions struct {
	Alias    string
	ThreadID string
}

type ThreadEventsOptions

type ThreadEventsOptions struct {
	Follow  bool
	RunID   string
	MaxRuns int
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL