Skip to content

Conversation

@vicperdana
Copy link

@vicperdana vicperdana commented Jan 23, 2026

Summary

This PR adds a .NET example to the "Step 5: Build an Interactive Assistant" section in the getting-started documentation.

Changes

  • Added a complete .NET/C# example for the interactive weather assistant alongside the existing Node.js and Python examples
  • The example demonstrates:
    • Using AIFunctionFactory.Create to define a weather tool
    • Creating a CopilotClient and session with streaming enabled
    • Handling AssistantMessageDeltaEvent for real-time output
    • Handling SessionIdleEvent for consistent output formatting
    • Building an interactive console loop

Why

The getting-started guide already had comprehensive examples for Node.js and Python for the interactive assistant section, but was missing the .NET equivalent. This addition ensures .NET developers have the same level of guidance as other language users.

Testing

The code follows the established patterns in the .NET SDK and matches the structure of other examples in the documentation.

@vicperdana vicperdana requested a review from a team as a code owner January 23, 2026 05:18
Copilot AI review requested due to automatic review settings January 23, 2026 05:18
Copy link
Contributor

Copilot AI left a 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 adds a .NET/C# code example to the "Step 5: Build an Interactive Assistant" section of the getting-started documentation, which previously only had Node.js and Python examples.

Changes:

  • Added a complete .NET interactive weather assistant example that demonstrates tool usage, streaming, and console interaction patterns
  • Includes setup instructions and run commands consistent with other language examples

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

- Use Random.Shared instead of new Random() for thread-safe random generation
- Add SessionIdleEvent handler for consistent output formatting
Copy link
Contributor

Copilot AI left a 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 1 out of 1 changed files in this pull request and generated 1 comment.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.


</details>

<details>
Copy link

Copilot AI Jan 23, 2026

Choose a reason for hiding this comment

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

The PR description states "The getting-started guide already had comprehensive examples for Node.js, Python, and Go for the interactive assistant section" but there is no Go example in Step 5 (Build an Interactive Assistant). Only Node.js and Python examples exist in this section. The description should be corrected to accurately reflect that this PR adds the .NET example alongside the existing Node.js and Python examples (not Go).

Copilot uses AI. Check for mistakes.
Copy link
Author

Choose a reason for hiding this comment

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

Updated PR description.

Copy link
Author

@vicperdana vicperdana left a comment

Choose a reason for hiding this comment

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

Resolved all Copilot Review.


</details>

<details>
Copy link
Author

Choose a reason for hiding this comment

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

Updated PR description.

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