-
Notifications
You must be signed in to change notification settings - Fork 49
Show number of messages sent this month #44
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
cac3f65
to
b7eda0e
Compare
src/index.ts
Outdated
"push_api_limit", | ||
"Push message API is limited messages per month. This tool provides the current limit and remaining quota.", | ||
{}, | ||
async () => { | ||
const response = await messagingApiClient.getMessageQuota(); | ||
return { | ||
content: [ | ||
{ | ||
type: "text", | ||
text: JSON.stringify(response), | ||
}, | ||
], | ||
}; | ||
}, | ||
); | ||
|
||
server.tool( | ||
"push_api_total_usage", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's not limited to push; it includes push + multicast + narrowcast + broadcast. How about considering it simply as a message quota?
src/index.ts
Outdated
server.tool( | ||
"push_api_limit", | ||
"Push message API is limited messages per month. This tool provides the current limit and remaining quota.", | ||
{}, | ||
async () => { | ||
const response = await messagingApiClient.getMessageQuota(); | ||
return { | ||
content: [ | ||
{ | ||
type: "text", | ||
text: JSON.stringify(response), | ||
}, | ||
], | ||
}; | ||
}, | ||
); | ||
|
||
server.tool( | ||
"push_api_total_usage", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Q: Is it necessary to separate the tools?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cool. There are no reason to split the tool 🤝
@@ -33,8 +33,17 @@ LINE公式アカウントとAI Agentを接続するために、LINE Messaging AP | |||
- `message.contents.type` (enum): コンテナのタイプ。'bubble'は単一コンテナ、'carousel'は複数のスワイプ可能なバブルを示す。 | |||
5. **get_profile** | |||
- LINEユーザーの詳細なプロフィール情報を取得する。表示名、プロフィール画像URL、ステータスメッセージ、言語を取得できる。 | |||
- **Inputs:** | |||
- **入力:** |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you 🙏
9f660b1
to
f01557f
Compare
README.ja.md
Outdated
6. **push_api_limit** | ||
- Push メッセージAPIは月間のメッセージ数に制限があります。このツールは現在の制限と残りの利用可能なメッセージ数を提供します。 | ||
- **入力:** | ||
- なし | ||
7. **push_api_total_usage** | ||
- Push メッセージAPIの総使用量を確認します。このツールは送信されたメッセージの総数と残りの利用可能なメッセージ数を提供します。 | ||
- **入力:** | ||
- なし |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
get_message_quota
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OMG.... Thanks for the comment ... 🙇 🙇
Hello! This is 4geru.
I added the Push API Limit tool. Also, the use case is in the screenshot.
previous