Skip to content

Conversation

@Wendong-Fan
Copy link
Member

@Wendong-Fan Wendong-Fan commented Jan 13, 2026

Description

Bug Fixes

  • Fix lark_get_message_resource_key parsing wrong API response path (data.bodydata.items[0].body)

Improvements

  • Simplify lark_list_chats response: return only chat_id and name
  • Simplify lark_get_chat_messages response:
    • Convert timestamps to readable format (2026-01-13 07:15:10 UTC)
    • Parse message content JSON and extract text field
    • Render system message templates
    • Mark image/file messages with [Image: key]
  • Update example with multiple demo scenarios

Response Format Changes for Better Agent Understanding

lark_list_chats:

# Before: {'code': 0, 'data': {'items': [{'chat_id': '...', 'name': '...', 'avatar': '...', ...}]}}
# After:  {'chats': [{'chat_id': '...', 'name': '...'}], 'has_more': False}

lark_get_chat_messages:

  # Before: {'code': 0, 'data': {'items': [{'body': {'content': '{"text":"hi"}'}, 'create_time': '1768262110094', ...}]}}
  # After:  {'messages': [{'message_id': '...', 'msg_type': 'text', 'text': 'hi', 'time': '2026-01-13 07:15:10 UTC', ...}]}

Checklist

Go over all the following points, and put an x in all the boxes that apply.

  • I have read the CONTRIBUTION guide (required)
  • I have linked this PR to an issue using the Development section on the right sidebar or by adding Fixes #issue-number in the PR description (required)
  • I have checked if any dependencies need to be added or updated in pyproject.toml and uv lock
  • I have updated the tests accordingly (required for a bug fix or a new feature)
  • I have updated the documentation if needed:
  • I have added examples if this is a new feature

If you are unsure about any of these, don't hesitate to ask. We are here to help!

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Jan 13, 2026

Important

Review skipped

Auto reviews are disabled on this repository.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@github-actions github-actions bot added the Review Required PR need to be reviewed label Jan 13, 2026
@Wendong-Fan Wendong-Fan marked this pull request as ready for review January 13, 2026 00:30
@Wendong-Fan Wendong-Fan merged commit 887ef4c into feat/lark-integration Jan 13, 2026
4 checks passed
@Wendong-Fan Wendong-Fan deleted the feat/lark-integration_wd branch January 13, 2026 00:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Review Required PR need to be reviewed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant