-
Notifications
You must be signed in to change notification settings - Fork 2
Separate example codes from README and add OpenAI, Claude, MCP examples #23
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
Co-authored-by: comfuture <[email protected]>
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 better to leave the most basic usage instructions in the readme.
- It is not desirable to print the entire code in the usage of example code.
README.md
Outdated
``` | ||
|
||
Please refer to the [Claude tool use](https://docs.anthropic.com/claude/docs/tool-use) documentation for more information. | ||
See the [examples directory](./examples/) for comprehensive usage examples with different AI platforms: |
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 better to leave the most basic usage instructions in the readme.
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.
Added basic usage instructions back to the README. The main usage section now shows the complete flow from function definition to schema generation with example output, addressing the feedback to keep essential instructions in the README itself. Commit 482f667.
… organization Co-authored-by: comfuture <[email protected]>
Restored basic usage instructions to the README as requested. The README now includes the essential function definition example, schema generation steps, JSON output, and key features like enum/Literal usage - all inline. References to comprehensive examples in the |
test fails on python 3.9 |
Co-authored-by: comfuture <[email protected]>
Fixed Python 3.9 compatibility issues in the tests. The problems were: 1) missing |
Please refer to the failure stack trace:
The |
…nerics Co-authored-by: comfuture <[email protected]>
... Fixed the Python 3.9 compatibility issue. The problem was |
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.
Great Job!
This PR addresses the need to organize example code better and provide comprehensive examples for different AI platforms.
Changes Made
📁 New Examples Directory
Created a dedicated
examples/
directory with:📝 Updated README
examples/
directory🧪 Added Tests
test/test_examples.py
to validate example syntax and functionality🆕 New Platform Support
Example Usage
All existing functionality remains unchanged - this is purely an organizational improvement with additional examples.
Fixes #22.
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.