Gwenlake の ラボ

ブラウザで試せるチームのプロトタイプと、私たちがオープンソースで公開しているもの:エージェントシステムを支えるフレームワークと、いくつかの小さなライブラリです。

エージェント型 AI フレームワーク · Python

Gwenflow

Gwenflow は AI エージェントを動かします。目標、ツール、記憶、モデルを与えると、エージェントは推論し、行動し、観察し、目標が達成されるまでこれを繰り返します。私たちが構築するすべてのエージェントシステムで使っており、エージェントが実行するコードを一行残らず把握するために自分たちで書きました。顧客のデータに対して下されたどの判断も、開いて確かめ、説明し、変更できるようにするためです。

from gwenflow import Agent, ChatMistralfrom gwenflow.tools import Tool def accounts_at_risk(period: str, min_drop: int = 10) -> list[dict]:    """Accounts whose usage fell by at least `min_drop` percent."""    return crm.query(period=period, trend="down", min_drop=min_drop) agent = Agent(    name="Account review",    instructions="Rank the accounts at risk, with the figures.",    llm=ChatMistral(),    tools=[Tool(accounts_at_risk)],) response = agent.run("Which accounts are at risk this quarter?")