Skip to content

Commit

Permalink
undo changes to test
Browse files Browse the repository at this point in the history
  • Loading branch information
zachkirsch committed Feb 22, 2025
1 parent 1c5426c commit c6ef299
Showing 1 changed file with 10 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,11 @@ The `topic` is only used as a name or label for the classification task and does
You may optionally specify the number of previous messages to consider when classifying the Session (default `4`), and whether to persist the classification in the Session's metadata (default `True`).

<Tabs>
<Tab title="Python" language="python">
<Tab title="Python">
```python classes = ["class1", "class2", ..., "other"] classification = client.memory.classify_session( session_id,
"topic", classes, last_n=4, persist=True ) ```
</Tab>
<Tab title="Typescript" language="typescript">
<Tab title="Typescript">
```typescript const classes = ["class1", "class2", ..., "other"] const classification = await
client.memory.classifySession( session_id, "topic", classes, 4, // lastN true // persist ) ```
</Tab>
Expand All @@ -48,12 +48,12 @@ You may optionally provide a custom instruction to the classification task. This
You may want to use this option if you have specific guidelines that you want to communicate to the LLM in addition to our classification prompt.

<Tabs group="memory">
<Tab title="Python" language="python">
<Tab title="Python">
```python classes = ["advanced", "beginner", ..., "dojo"] classification = client.memory.classify_session(
session_id, "experience level", classes, instruction="Classify the user's experience level. You may classify
experience as 'dojo' only if the user is a black belt." ) ```
</Tab>
<Tab title="Typescript" language="typescript">
<Tab title="Typescript">
```typescript const classes = ["advanced", "beginner", ..., "dojo"] const classification = await
client.memory.classifySession( session_id, "experience level", classes, "Classify the user's experience level. You
may classify experience as 'dojo' only if the user is a black belt." ) ```
Expand All @@ -69,7 +69,7 @@ user: Hello, my phone isn't responding to touch.
```

<Tabs>
<Tab title="Python" language="python">
<Tab title="Python">
```python
classes = [
"sales interest",
Expand All @@ -84,7 +84,7 @@ user: Hello, my phone isn't responding to touch.
print(classification)
```
</Tab>
<Tab title="Typescript" language="typescript">
<Tab title="Typescript">
```typescript
const classes = [
"sales interest",
Expand Down Expand Up @@ -116,11 +116,11 @@ user: What is the capital of France?
```

<Tabs>
<Tab title="Python" language="python">
<Tab title="Python">
```python classes = [ "complete math problems using a calculator", "research topics or find information with a web
search", "no matching tool", ] classification = client.memory.classify_session( session_id, "tool", classes ) ```
</Tab>
<Tab title="Typescript" language="typescript">
<Tab title="Typescript">
```typescript const classes = [ "complete math problems using a calculator", "research topics or find information
with a web search", "no matching tool", ] const classification = await client.memory.classifySession( session_id,
"tool", classes ) ```
Expand All @@ -141,11 +141,11 @@ user: Is that entirely necessary? I'm very busy.
```
<Tabs>
<Tab title="Python" language="python">
<Tab title="Python">
```python classes = [ "happy", "sad", "frustrated", "angry", "other" ] classification =
client.memory.classify_session( session_id, "emotion", classes ) ```
</Tab>
<Tab title="Typescript" language="typescript">
<Tab title="Typescript">
```typescript const classes = [ "happy", "sad", "frustrated", "angry", "other" ] classification = await
client.memory.classifySession( session_id, "emotion", classes ) ```
</Tab>
Expand Down

0 comments on commit c6ef299

Please sign in to comment.