Skip to content

Adds the console echo agent sample#239

Closed
stevkan wants to merge 2 commits intomicrosoft:mainfrom
stevkan:add-console-agent-sample
Closed

Adds the console echo agent sample#239
stevkan wants to merge 2 commits intomicrosoft:mainfrom
stevkan:add-console-agent-sample

Conversation

@stevkan
Copy link
Copy Markdown
Collaborator

@stevkan stevkan commented Jul 31, 2025

No description provided.

@github-actions github-actions bot added Samples Changes to Samples From Fork labels Jul 31, 2025
@MattB-msft MattB-msft requested a review from Copilot August 1, 2025 16:08
Copy link
Copy Markdown
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 console echo agent sample for the Agents SDK, demonstrating how to implement a simple conversational flow from the console window. The sample includes a complete Node.js project that uses a custom ConsoleAdapter to enable bot interaction directly from the terminal.

  • Complete console-based agent implementation with TypeScript configuration
  • Custom ConsoleAdapter that extends CloudAdapter for terminal-based interaction
  • Simple DialogAgent that echoes user messages and responds to quit commands

Reviewed Changes

Copilot reviewed 6 out of 7 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
tsconfig.json TypeScript configuration for the sample project
src/index.ts Main entry point that sets up the console adapter and dialog agent
src/dialogAgent.ts Bot logic handler that echoes messages and handles quit command
src/consoleAdapter.ts Custom adapter implementation for console-based bot interaction
package.json Project dependencies and build configuration
README.md Documentation explaining how to run and test the sample
Files not reviewed (1)
  • samples/compat/console-echo/nodejs/package-lock.json: Language not supported

@MattB-msft MattB-msft requested a review from rido-min August 1, 2025 16:09
@JimDaly
Copy link
Copy Markdown
Member

JimDaly commented Aug 6, 2025

#242 is reorganizing the sample structure. This PR will not fit in the new organization since there will be no compat folder.

@MattB-msft
Copy link
Copy Markdown
Member

@stevkan Give us a day here and then please pick up the new structure and remap your sample in..
thanks !

@JimDaly
Copy link
Copy Markdown
Member

JimDaly commented Aug 8, 2025

@stevkan Give us a day here and then please pick up the new structure and remap your sample in.. thanks !

The sample reorganization PR (#242) was merged

@stevkan stevkan closed this Aug 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

From Fork Samples Changes to Samples

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants