Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Print used OpenAI Assistant tools for AI assistant #33

Merged
merged 2 commits into from
May 27, 2024
Merged

Conversation

pkosiec
Copy link
Collaborator

@pkosiec pkosiec commented May 27, 2024

Description

Changes proposed in this pull request:

  • Print used OpenAI Assistant tools for AI assistant

Screenshots

Slack

slack-1
slack-2
slack-3

MS Teams

teams

Discord

discord

Testing

PLUGIN_TARGETS='ai,ai-brain' make build-plugins-single; make serve-local-plugins
  • Run Cloud backend (optionally: with Slack and Teams)

Ensure the config:

app:
  origin: "http://host.k3d.internal:8080"
# (...)
pluginRepositories:
  botkube:
    type: Public
    url: https://storage.googleapis.com/botkube-plugins-latest/plugins-index.yaml
  botkubeCloud:
    type: Public
    url: http://host.k3d.internal:3010/botkube.yaml
  • Create Instance with Discord / Slack / Teams
  • Run Botkube from the latest main of botkube repo outside of the K8s cluster:
rm -rf /tmp/botkubeCloud.yaml /tmp/botkubeCloud /tmp/plugins /tmp/botkube

export BOTKUBE_PLUGINS_CACHE__DIR="/tmp/plugins"
export BOTKUBE_PLUGINS_INCOMING__WEBHOOK_PORT="2115"
export BOTKUBE_PLUGINS_INCOMING__WEBHOOK_IN__CLUSTER__BASE__U__R__L="http://localhost:2115"
export BOTKUBE_SETTINGS_LOG_LEVEL=debug
export LOG_LEVEL_SOURCE_BOTKUBECLOUD_AI_BRAIN=debug

export BOTKUBE_SETTINGS_KUBECONFIG="${KUBECONFIG}"
export CONFIG_PROVIDER_ENDPOINT=http://host.k3d.internal:8080/graphql
export CONFIG_PROVIDER_IDENTIFIER=8ad2a002-5a53-4588-af1f-c8082575dd11
export CONFIG_PROVIDER_API_KEY=key:94f8b7ac-2cd2-42b0-b20b-7ec37ab2200f
go run cmd/botkube-agent/main.go

Ask AI assistant something like:

@PKBotkubeCloud
 ai what is Botkube agent status? Based on Botkube docs, describe purpose of each plugin that is running in one sentence.

@PKBotkubeCloud
 ai what is Botkube agent status?

@PKBotkubeCloud who is Botkube maintainer?

Related issue(s)

Resolves https://github.com/kubeshop/botkube-cloud/issues/1060

go.mod Outdated Show resolved Hide resolved
@pkosiec pkosiec marked this pull request as ready for review May 27, 2024 10:52
@pkosiec pkosiec requested review from a team and vaijab May 27, 2024 10:52
@pkosiec pkosiec added the enhancement New feature or request label May 27, 2024
@pkosiec pkosiec merged commit d858601 into main May 27, 2024
4 checks passed
@pkosiec pkosiec deleted the print-ai-tools branch May 27, 2024 14:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants