Skip to content
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

feat: add baidu map plugin #219

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open

Conversation

CoderSerio
Copy link

@CoderSerio CoderSerio commented Dec 19, 2024

Describe what this PR does / why we need it

Baidu Map is also one of the commonly used apps in daily life, so it is necessary to provide some support for it.

Does this pull request fix one issue?

#98

Describe how you did it

With Baidu Map Open APIs

Describe how to verify it

Originally, there was an example here, but I noticed that this part of the file has been moved to another repository. I will also add it to the new one as soon as possible

image

The part of original example:

@GetMapping("/baiduMap-get-address-weather")
public String baiDuMapGetAddressWeatherFunction(String input) {
    return chatClient.prompt()
        .functions("baiDuMapGetAddressWeatherFunction")
        .system("如果用户输入的内容中想询问天气情况,而且还给定了地址,则使用工具获取天气情况,不然提示用户缺少信息")
        .user(input)
        .call()
        .content();
}

Special notes for reviews

@PolarishT
Copy link
Contributor

Hi, this issue should related to #98

@CoderSerio
Copy link
Author

Hi, this issue should related to #98

Thx noticing me, and I've added it😘

…mplement regional surrounding information retrieval
@CoderSerio
Copy link
Author

@PolarishT
I've implemented the feature to get detailed information about facilities around a specific address.
And I've retained the ability to retrieve weather information, so both features can be used together.

image

Additionally, I've moved the dirs and files into function-calling from the original plugins

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants