Skip to content

Conversation

@Linux2010
Copy link
Contributor

Description

feat: Add a travel planner powered by a custom-configured model (openAI Compatible).

Merge reasons

  • When running the demo of the current SDK, there will be situations where the MCP tool or function call cannot be used, and it is difficult to run.
  • The current SDK demo supports Google's large model, but lacks demo examples of customizing the configuration of large models.
  • The demo I provided, based on the standard protocol of A2A, supports custom configuration of large models and provides standard code for the agent, client, and server.
  • I sincerely hope to provide developers who are new to the A2A project with an easy-to-get-started demo example. Therefore, if there are any parts that need to be modified, please leave a message. I hope my code can be helpful for the example of the SDK project.

Subsequent plans

  • When the official SDK is updated, I will update this example to make it compatible with the latest SDK.
  • Enrich the functions of the travel assistant, add a Python file, and demonstrate examples of using MCP and function - call.

Running Screenshot

  • server
Screenshot 2025-05-15 at 10 58 09 PM
  • client
Screenshot 2025-05-15 at 10 58 15 PM

@Linux2010 Linux2010 requested a review from a team as a code owner May 15, 2025 15:05
@@ -0,0 +1,5 @@
{
"model_name":"qwen3-32b",
"api_key": "sk-74e8a7c32e2741ff892844597dcc31c1",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this API Key be added here?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You're right. I didn't think it through carefully. I will revise the logic here. Thank you for pointing it out.

@Linux2010
Copy link
Contributor Author

description

  • In this optimization, the real API key is placed in the environment variables.

PS: The configuration method of conf.json refers to the implementation approach of Codex.

image

@Linux2010 Linux2010 requested a review from holtskinner May 22, 2025 15:09
@holtskinner
Copy link
Member

Can you please move this PR to the new samples repo? https://github.com/google-a2a/a2a-samples

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