Skip to content

Initial web surfer implementation in extension#4071

Merged
ekzhu merged 5 commits into
mainfrom
websurfer
Nov 8, 2024
Merged

Initial web surfer implementation in extension#4071
ekzhu merged 5 commits into
mainfrom
websurfer

Conversation

@ekzhu

@ekzhu ekzhu commented Nov 5, 2024

Copy link
Copy Markdown
Contributor

Resolves #3688

@ekzhu ekzhu added this to the 0.4.0 milestone Nov 5, 2024
@afourney afourney self-requested a review November 7, 2024 23:56

@afourney afourney left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Appears to work as expected -- albeit without the Q&A and summarization features. We will add those in a future PR.

@afourney

afourney commented Nov 8, 2024

Copy link
Copy Markdown
Member

Code for testing:

import asyncio
from autogen_ext.models import OpenAIChatCompletionClient
from autogen_ext.agents import MultimodalWebSurfer

async def main() -> None:
    model_client = OpenAIChatCompletionClient(model="gpt-4o-2024-08-06")


    web_surfer = MultimodalWebSurfer(
        name="web_surfer",
        model_client = model_client,
    )

    await web_surfer.init(
        to_save_screenshots = True,
    )

    while True:
        # Run the team and stream messages
        user_input = await asyncio.get_event_loop().run_in_executor(None, input, ">: ")
        response = await web_surfer.run(user_input)
        print(response)

asyncio.run(main())

@ekzhu ekzhu marked this pull request as ready for review November 8, 2024 00:21
@ekzhu ekzhu merged commit 9e38892 into main Nov 8, 2024
@ekzhu ekzhu deleted the websurfer branch November 8, 2024 00:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Websurfer agent in AgentChat v0.4

3 participants