Documentation ¶
Index ¶
- type Client
- func (c *Client) AuthenticateWorkflow(ctx context.Context, wfID string) (*types.InvokeResponse, error)
- func (c *Client) Create(ctx context.Context, typeName string, body []byte) (string, error)
- func (c *Client) CreateAgent(ctx context.Context, agent types.AgentManifest) (*types.Agent, error)
- func (c *Client) CreateToolReference(ctx context.Context, manifest types.ToolReferenceManifest) (*types.ToolReference, error)
- func (c *Client) CreateWorkflow(ctx context.Context, workflow types.WorkflowManifest) (*types.Workflow, error)
- func (c *Client) DebugRun(ctx context.Context, runID string) (result *types.RunDebug, err error)
- func (c *Client) DeleteAgent(ctx context.Context, id string) error
- func (c *Client) DeleteCredential(ctx context.Context, name string, opts DeleteCredentialsOptions) (err error)
- func (c *Client) DeleteEmailReceiver(ctx context.Context, id string) error
- func (c *Client) DeleteRun(ctx context.Context, id string) error
- func (c *Client) DeleteThread(ctx context.Context, id string) error
- func (c *Client) DeleteToolReference(ctx context.Context, id string, toolType types.ToolReferenceType) error
- func (c *Client) DeleteWebhook(ctx context.Context, id string) error
- func (c *Client) DeleteWorkflow(ctx context.Context, id string) error
- func (c *Client) GetAgent(ctx context.Context, id string) (*types.Agent, error)
- func (c *Client) GetEmailReceiver(ctx context.Context, id string) (*types.EmailReceiver, error)
- func (c *Client) GetRun(ctx context.Context, id string) (result *types.Run, err error)
- func (c *Client) GetThread(ctx context.Context, threadID string) (result *types.Thread, err error)
- func (c *Client) GetToolReference(ctx context.Context, id string) (result *types.ToolReference, _ error)
- func (c *Client) GetWebhook(ctx context.Context, id string) (result *types.Webhook, _ error)
- func (c *Client) GetWorkflow(ctx context.Context, id string) (*types.Workflow, error)
- func (c *Client) Invoke(ctx context.Context, agentID string, input string, opts InvokeOptions) (*types.InvokeResponse, error)
- func (c *Client) ListAgents(ctx context.Context, opts ListAgentsOptions) (result types.AgentList, err error)
- func (c *Client) ListCredentials(ctx context.Context, opts ListCredentialsOptions) (result types.CredentialList, err error)
- func (c *Client) ListEmailReceivers(ctx context.Context) (result types.EmailReceiverList, _ error)
- func (c *Client) ListFiles(ctx context.Context, opts ListFileOptions) (result types.FileList, err error)
- func (c *Client) ListRuns(ctx context.Context, opts ListRunsOptions) (result types.RunList, err error)
- func (c *Client) ListThreads(ctx context.Context, opts ListThreadsOptions) (result types.ThreadList, err error)
- func (c *Client) ListToolReferences(ctx context.Context, opts ListToolReferencesOptions) (result types.ToolReferenceList, _ error)
- func (c *Client) ListWebhooks(ctx context.Context) (result types.WebhookList, _ error)
- func (c *Client) ListWorkflowExecutions(ctx context.Context, workflowID string, opts ListWorkflowExecutionsOptions) (result types.WorkflowExecutionList, err error)
- func (c *Client) ListWorkflows(ctx context.Context, opts ListWorkflowsOptions) (result types.WorkflowList, err error)
- func (c *Client) PromptResponse(ctx context.Context, resp types.PromptResponse) error
- func (c *Client) RunEvents(ctx context.Context, runID string) (result <-chan types.Progress, err error)
- func (c *Client) StreamRuns(ctx context.Context, opts ListRunsOptions) (result <-chan types.Run, err error)
- func (c *Client) ThreadEvents(ctx context.Context, threadID string, opts ThreadEventsOptions) (result <-chan types.Progress, err error)
- func (c *Client) UpdateAgent(ctx context.Context, id string, manifest types.AgentManifest) (*types.Agent, error)
- func (c *Client) UpdateThread(ctx context.Context, id string, thread types.ThreadManifest) (*types.Thread, error)
- func (c *Client) UpdateToolReference(ctx context.Context, id, reference string) (*types.ToolReference, error)
- func (c *Client) UpdateWorkflow(ctx context.Context, id string, manifest types.WorkflowManifest) (*types.Workflow, error)
- func (c *Client) WithCookie(cookie *http.Cookie) *Client
- func (c *Client) WithToken(token string) *Client
- func (c *Client) WithTokenFetcher(f func(context.Context, string) (string, error)) *Client
- type DeleteCredentialsOptions
- type InvokeOptions
- type ListAgentsOptions
- type ListCredentialsOptions
- type ListFileOptions
- type ListRunsOptions
- type ListThreadsOptions
- type ListToolReferencesOptions
- type ListWorkflowExecutionsOptions
- type ListWorkflowsOptions
- type ThreadEventsOptions
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 (*Client) CreateAgent ¶
func (*Client) CreateToolReference ¶
func (c *Client) CreateToolReference(ctx context.Context, manifest types.ToolReferenceManifest) (*types.ToolReference, error)
func (*Client) CreateWorkflow ¶
func (*Client) DeleteCredential ¶
func (*Client) DeleteEmailReceiver ¶
func (*Client) DeleteToolReference ¶
func (*Client) DeleteWorkflow ¶
func (*Client) GetEmailReceiver ¶
func (*Client) GetToolReference ¶
func (*Client) GetWebhook ¶
func (*Client) GetWorkflow ¶
func (*Client) Invoke ¶
func (c *Client) Invoke(ctx context.Context, agentID string, input string, opts InvokeOptions) (*types.InvokeResponse, error)
func (*Client) ListAgents ¶
func (*Client) ListCredentials ¶
func (c *Client) ListCredentials(ctx context.Context, opts ListCredentialsOptions) (result types.CredentialList, err error)
func (*Client) ListEmailReceivers ¶
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 (*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 (*Client) StreamRuns ¶
func (*Client) ThreadEvents ¶
func (*Client) UpdateAgent ¶
func (*Client) UpdateThread ¶
func (*Client) UpdateToolReference ¶
func (*Client) UpdateWorkflow ¶
type InvokeOptions ¶
type ListAgentsOptions ¶
type ListAgentsOptions struct {
Alias string
}
type ListCredentialsOptions ¶
type ListFileOptions ¶
type ListRunsOptions ¶
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 ThreadEventsOptions ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.