From f51818d046794b77c75156a904cc27a64c9ed145 Mon Sep 17 00:00:00 2001 From: conneroisu Date: Mon, 28 Oct 2024 07:13:28 -0500 Subject: [PATCH] rename auther to authorizer --- extensions/composio/auth.go | 4 ++-- extensions/composio/composio.go | 2 +- extensions/composio/run.go | 4 +++- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/extensions/composio/auth.go b/extensions/composio/auth.go index 4496185..74db49d 100644 --- a/extensions/composio/auth.go +++ b/extensions/composio/auth.go @@ -11,8 +11,8 @@ import ( ) type ( - // Auther is an interface for composio auth. - Auther interface { + // Authorizer is an interface for composio auth. + Authorizer interface { GetConnectedAccounts(ctx context.Context, opts ...AuthOption) ([]ConnectedAccount, error) } // ConnectedAccount represents a composio connected account. diff --git a/extensions/composio/composio.go b/extensions/composio/composio.go index 039150d..be37aba 100644 --- a/extensions/composio/composio.go +++ b/extensions/composio/composio.go @@ -21,7 +21,7 @@ type ( Composer interface { Tooler Runner - Auther + Authorizer } // Composio is a composio client. Composio struct { diff --git a/extensions/composio/run.go b/extensions/composio/run.go index 92551bd..6bbb26a 100644 --- a/extensions/composio/run.go +++ b/extensions/composio/run.go @@ -13,7 +13,9 @@ import ( type ( // Runner is an interface for composio run. Runner interface { - Run(ctx context.Context, response groq.ChatCompletionResponse) ( + Run(ctx context.Context, + user ConnectedAccount, + response groq.ChatCompletionResponse) ( []groq.ChatCompletionMessage, error) } request struct {