Skip to content

Conversation

@x42en
Copy link
Contributor

@x42en x42en commented May 28, 2025

This pull request introduces updates to the python_a2a library to improve flexibility and compatibility in handling function roles and API keys for OpenAI and Ollama integrations. The changes primarily focus on adding configurable function roles and API key support, ensuring better customization and adaptability for different use cases.

Enhancements to API Key Handling:

Improvements to Function Role Configuration:

  • python_a2a/client/llm/openai.py: Introduced the function_role attribute with a default value of "function" and replaced hardcoded function roles in methods such as send_message and send_conversation. [1] [2] [3] [4]
  • python_a2a/server/llm/openai.py: Added the function_role attribute and updated function role handling in methods like handle_message and handle_conversation. [1] [2] [3] [4]
  • python_a2a/client/llm/ollama.py and python_a2a/server/llm/ollama.py: Set function_role to "tool" for Ollama-specific integrations. [1] [2]

Associations

This PR should /close issue #53

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.

1 participant