docs: edit
This commit is contained in:
@@ -167,7 +167,7 @@ const message = await client.session.chat({
|
|||||||
id: session.id,
|
id: session.id,
|
||||||
providerID: "anthropic",
|
providerID: "anthropic",
|
||||||
modelID: "claude-3-5-sonnet-20241022",
|
modelID: "claude-3-5-sonnet-20241022",
|
||||||
parts: [{ type: "text", text: "Hello!" }],
|
parts: [{ type: "text", text: "Hello!" }]
|
||||||
})
|
})
|
||||||
```
|
```
|
||||||
|
|
||||||
@@ -210,7 +210,7 @@ const content = await client.file.read({ path: "src/index.ts" })
|
|||||||
await client.log.write({
|
await client.log.write({
|
||||||
service: "my-app",
|
service: "my-app",
|
||||||
level: "info",
|
level: "info",
|
||||||
message: "Operation completed",
|
message: "Operation completed"
|
||||||
})
|
})
|
||||||
```
|
```
|
||||||
|
|
||||||
@@ -257,7 +257,7 @@ const agents = await client.agent.list()
|
|||||||
await client.tui.appendPrompt({ text: "Add this to prompt" })
|
await client.tui.appendPrompt({ text: "Add this to prompt" })
|
||||||
await client.tui.showToast({
|
await client.tui.showToast({
|
||||||
message: "Task completed",
|
message: "Task completed",
|
||||||
variant: "success",
|
variant: "success"
|
||||||
})
|
})
|
||||||
```
|
```
|
||||||
|
|
||||||
@@ -277,7 +277,7 @@ await client.tui.showToast({
|
|||||||
await client.auth.set({
|
await client.auth.set({
|
||||||
id: "anthropic",
|
id: "anthropic",
|
||||||
type: "api",
|
type: "api",
|
||||||
key: "your-api-key",
|
key: "your-api-key"
|
||||||
})
|
})
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user