-
Notifications
You must be signed in to change notification settings - Fork 14.2k
docs: AI project, with framework #1505
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
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.
Pull Request Overview
This PR introduces an AI framework documentation project that demonstrates how to use LangChain with GitHub Models. The purpose is to provide educational content and code examples for building AI applications using frameworks rather than direct API calls.
Key changes include:
- Complete documentation explaining AI framework benefits and usage patterns
- Python code examples demonstrating basic prompting, chat conversations, and tool calling
- Practical implementations showing integration with external APIs
Reviewed Changes
Copilot reviewed 4 out of 5 changed files in this pull request and generated 10 comments.
File | Description |
---|---|
10-ai-framework-project/README.md | Comprehensive documentation covering AI frameworks, LangChain usage, and detailed code examples |
10-ai-framework-project/code/python/app.py | Basic LangChain implementation for simple prompting |
10-ai-framework-project/code/python/app-chat.py | Chat conversation example with message history |
10-ai-framework-project/code/python/app-tools.py | Tool calling implementation with external API integration |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
10-ai-framework-project/README.md
Outdated
) | ||
|
||
messages = [ | ||
SystemMessage(content="You are Captain Picard of the Startship Enterprise"), |
Copilot
AI
Oct 3, 2025
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.
Corrected spelling of 'Startship' to 'Starship'.
Copilot uses AI. Check for mistakes.
Co-authored-by: Copilot <[email protected]>
Co-authored-by: Copilot <[email protected]>
Co-authored-by: Copilot <[email protected]>
Co-authored-by: Copilot <[email protected]>
Co-authored-by: Copilot <[email protected]>
Co-authored-by: Copilot <[email protected]>
Co-authored-by: Copilot <[email protected]>
Co-authored-by: Copilot <[email protected]>
Fix spelling Co-authored-by: Copilot <[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.
Pull Request Overview
Copilot reviewed 4 out of 5 changed files in this pull request and generated 5 comments.
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
|
||
|
||
# works | ||
response = llm.invoke(messages) |
Copilot
AI
Oct 11, 2025
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.
Extra space in variable assignment - should be single space between 'response' and '='.
Copilot uses AI. Check for mistakes.
messages.append(response) | ||
messages.append(HumanMessage(content="Now that I know about you, I'm Chris, can I be in your crew?")) | ||
|
||
response = llm.invoke(messages) |
Copilot
AI
Oct 11, 2025
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.
Extra space in variable assignment - should be single space between 'response' and '='.
Copilot uses AI. Check for mistakes.
) | ||
|
||
messages = [ | ||
SystemMessage(content="You are Captain Picard of the Starship Enterprise"), |
Copilot
AI
Oct 11, 2025
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.
Inconsistent spelling - this instance correctly uses 'Starship' while line 89 uses 'Startship'.
Copilot uses AI. Check for mistakes.
Co-authored-by: Copilot <[email protected]>
Fix spelling Co-authored-by: Copilot <[email protected]>
Description
Please include a summary of the changes and the related issue. Please also include relevant motivation and context.
Fixes # (issue)
Type of change