Skip to content

Commit

Permalink
change to ai_exchange
Browse files Browse the repository at this point in the history
  • Loading branch information
lily-de committed Aug 27, 2024
1 parent 3e3f21d commit b126baa
Show file tree
Hide file tree
Showing 17 changed files with 20 additions and 20 deletions.
6 changes: 3 additions & 3 deletions src/goose/build.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
from itertools import chain

from exchange import Exchange, Message
from exchange.moderators import get_moderator
from exchange.providers import get_provider
from ai_exchange import Exchange, Message
from ai_exchange.moderators import get_moderator
from ai_exchange.providers import get_provider

from goose.notifier import Notifier
from goose.profile import Profile
Expand Down
2 changes: 1 addition & 1 deletion src/goose/cli/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ def version() -> None:
"""Lists the version of goose and any plugins"""
from importlib.metadata import entry_points, version

print(f"[green]Goose[/green]: [bold][cyan]{version('goose')}[/cyan][/bold]")
print(f"[green]Goose[/green]: [bold][cyan]{version('goose-ai')}[/cyan][/bold]")
print("[green]Plugins[/green]:")
filtered_groups = {}
modules = set()
Expand Down
2 changes: 1 addition & 1 deletion src/goose/cli/session.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
from pathlib import Path
from typing import Any, Dict, List, Optional

from exchange import Message, ToolResult, ToolUse
from ai_exchange import Message, ToolResult, ToolUse
from prompt_toolkit.shortcuts import confirm
from rich import print
from rich.console import RenderableType
Expand Down
2 changes: 1 addition & 1 deletion src/goose/toolkit/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from typing import Callable, Mapping, Optional, Tuple, TypeVar

from attrs import define, field
from exchange import Tool
from ai_exchange import Tool

from goose.notifier import Notifier

Expand Down
2 changes: 1 addition & 1 deletion src/goose/toolkit/developer.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
from subprocess import CompletedProcess, run
from typing import List

from exchange import Message
from ai_exchange import Message
from rich import box
from rich.markdown import Markdown
from rich.panel import Panel
Expand Down
2 changes: 1 addition & 1 deletion src/goose/toolkit/github.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from exchange import Message
from ai_exchange import Message

from goose.toolkit.base import Toolkit

Expand Down
2 changes: 1 addition & 1 deletion src/goose/toolkit/repo_context/repo_context.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from subprocess import CompletedProcess, run
from typing import Dict, Tuple

from exchange import Message
from ai_exchange import Message

from goose.notifier import Notifier
from goose.toolkit import Toolkit
Expand Down
2 changes: 1 addition & 1 deletion src/goose/toolkit/repo_context/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from collections import deque
from typing import Dict, List, Tuple

from exchange import Exchange
from ai_exchange import Exchange

from goose.utils.ask import ask_an_ai

Expand Down
4 changes: 2 additions & 2 deletions src/goose/toolkit/summarization/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
from pathlib import Path
from typing import Dict, List, Optional, Tuple

from exchange import Exchange
from exchange.providers.utils import InitialMessageTooLargeError
from ai_exchange import Exchange
from ai_exchange.providers.utils import InitialMessageTooLargeError

from goose.utils.ask import ask_an_ai
from goose.utils.file_utils import create_file_list
Expand Down
2 changes: 1 addition & 1 deletion src/goose/utils/ask.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from exchange import Exchange, Message
from ai_exchange import Exchange, Message


def ask_an_ai(input: str, exchange: Exchange, prompt: str = "", no_history: bool = True) -> Message:
Expand Down
2 changes: 1 addition & 1 deletion src/goose/utils/session_file.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
from pathlib import Path
from typing import Dict, Iterator, List

from exchange import Message
from ai_exchange import Message

from goose.cli.config import SESSION_FILE_SUFFIX

Expand Down
2 changes: 1 addition & 1 deletion src/goose/view.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from attrs import define
from exchange import Exchange
from ai_exchange import Exchange


@define
Expand Down
2 changes: 1 addition & 1 deletion tests/cli/test_main.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

import pytest
from click.testing import CliRunner
from exchange import Message
from ai_exchange import Message
from goose.cli.main import goose_cli


Expand Down
2 changes: 1 addition & 1 deletion tests/cli/test_session.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from unittest.mock import MagicMock, patch

import pytest
from exchange import Message
from ai_exchange import Message
from goose.cli.prompt.goose_prompt_session import GoosePromptSession
from goose.cli.prompt.user_input import PromptAction, UserInput
from goose.cli.session import Session
Expand Down
2 changes: 1 addition & 1 deletion tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from unittest.mock import Mock, patch

import pytest
from exchange import Exchange
from ai_exchange import Exchange
from goose.profile import Profile


Expand Down
2 changes: 1 addition & 1 deletion tests/utils/test_ask.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from unittest.mock import MagicMock, patch

import pytest
from exchange import Exchange
from ai_exchange import Exchange
from goose.utils.ask import ask_an_ai, clear_exchange, replace_prompt


Expand Down
2 changes: 1 addition & 1 deletion tests/utils/test_session_file.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from pathlib import Path

import pytest
from exchange import Message
from ai_exchange import Message
from goose.utils.session_file import list_sorted_session_files, read_from_file, session_file_exists, write_to_file


Expand Down

0 comments on commit b126baa

Please sign in to comment.