Skip to content

WebSurferAnswer

fastagency.runtimes.autogen.tools.websurfer.WebSurferAnswer #

Bases: BaseModel

is_successful instance-attribute #

is_successful: bool

long_answer instance-attribute #

long_answer: str

short_answer instance-attribute #

short_answer: str

task instance-attribute #

task: str
visited_links: list[HttpUrl]

get_example_answer staticmethod #

get_example_answer() -> WebSurferAnswer
Source code in fastagency/runtimes/autogen/tools/websurfer.py
@staticmethod
def get_example_answer() -> "WebSurferAnswer":
    return WebSurferAnswer(
        task="What is the most popular QLED TV to buy on amazon.com?",
        is_successful=True,
        short_answer='Amazon Fire TV 55" Omni QLED Series 4K UHD smart TV',
        long_answer='Amazon has the best selling page by different categories and there is a category for QLED TVs under electroincs. The most popular QLED TV is Amazon Fire TV 55" Omni QLED Series 4K UHD smart TV, Dolby Vision IQ, Fire TV Ambient Experience, local dimming, hands-free with Alexa. It is the best selling QLED TV on Amazon.',
        visited_links=[
            "https://www.amazon.com/Best-Sellers/",
            "https://www.amazon.com/Best-Sellers-Electronics-QLED-TVs/",
        ],
    )