-
Notifications
You must be signed in to change notification settings - Fork 77
docs: fix SendMessageSuccessResponse import in example #126
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
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -113,8 +113,8 @@ The `A2AClient` makes it easy to communicate with any A2A-compliant agent. | |||||
|
||||||
```typescript | ||||||
// client.ts | ||||||
import { A2AClient, SendMessageSuccessResponse } from "@a2a-js/sdk/client"; | ||||||
import { Message, MessageSendParams } from "@a2a-js/sdk"; | ||||||
import { A2AClient } from "@a2a-js/sdk/client"; | ||||||
import { Message, MessageSendParams, SendMessageSuccessResponse } from "@a2a-js/sdk"; | ||||||
import { v4 as uuidv4 } from "uuid"; | ||||||
|
||||||
async function run() { | ||||||
|
@@ -212,8 +212,8 @@ The client sends a message and receives a `Task` object as the result. | |||||
|
||||||
```typescript | ||||||
// client.ts | ||||||
import { A2AClient, SendMessageSuccessResponse } from "@a2a-js/sdk/client"; | ||||||
import { Message, MessageSendParams, Task } from "@a2a-js/sdk"; | ||||||
import { A2AClient } from "@a2a-js/sdk/client"; | ||||||
import { Message, MessageSendParams, Task, SendMessageSuccessResponse } from "@a2a-js/sdk"; | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. For improved code consistency and readability, it's a good practice to sort named imports alphabetically.1 In this case,
Suggested change
Style Guide ReferencesFootnotes
|
||||||
// ... other imports ... | ||||||
|
||||||
const client = await A2AClient.fromCardUrl("http://localhost:4000/.well-known/agent-card.json"); | ||||||
|
Uh oh!
There was an error while loading. Please reload this page.