Skip to content

TGメッセージ履歴周りでエージェントに投げるデータ形式の決定(プロンプトにどのような形式でいれるか、要素としてはユーザー名、送信日時、テキスト) #4

Description

@yu23ki14

最終的な出力は誰が誰にどのトークンをいくら上げるか(JSONで返ってくると一番いい)

[
  {
    "sender_telegram_id": "taro_123",
    "receiver_telegram_id": "hanako_456",
    "tokenId": "0x12344", //fractiontokenのtoken id
    "amount": 300
  }
]

以下情報をもとに推論

  • telegram_id
  • 過去のトーク履歴内容と送信日(過去10件?20件?)
  • ロール情報 (ロール名、hatId: telegram_idとaddress紐づいてるので探せる)

※Return値のtokenIdはhat_idとsender_telegram_idに紐づくアドレス(hatのwearer)で求められる

TGのアカウントID(表示名じゃなくてアカウント名)とウォレットアドレスを紐づけるのが事前に必要

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions