Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 11 additions & 9 deletions paths/chat/chat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,10 @@ post:
user:
userId: "user-456"
type: LEARNER
detailPreference: MEDIUM
tonePreference: FRIENDLY
languagePreference: "en"
preference:
detail: MEDIUM
tone: FRIENDLY
language: "en"
messages:
- role: USER
content: "Give me a hint for my answer about polymorphism."
Expand Down Expand Up @@ -64,9 +65,10 @@ post:
user:
userId: "user-321"
type: LEARNER
detailPreference: DETAILED
tonePreference: NEUTRAL
languagePreference: "en"
preference:
detail: DETAILED
tone: NEUTRAL
language: "en"
taskProgress:
currentQuestionId: "question-321"
timeSpentOnQuestion: "30 minutes"
Expand Down Expand Up @@ -154,7 +156,7 @@ post:
schema:
$ref: "./schemas/ChatResponse.yml"
examples:
minimalChatResponse:
minimalChat:
summary: Minimal chat response
value:
output:
Expand All @@ -168,7 +170,7 @@ post:
When you call `speak()` on an `Animal` reference, the appropriate subclass method is invoked
based on the actual object type at runtime.
metadata: null
chatWithLlmConfigResponse:
chatWithLlmConfig:
summary: Chat response with LLM configuration
value:
output:
Expand All @@ -186,7 +188,7 @@ post:
model: "gpt-5.2"
temperature: 0.7
outputTokens: 78
chatWithContextResponse:
chatWithContext:
summary: Chat response with context
value:
output:
Expand Down
8 changes: 8 additions & 0 deletions paths/chat/schemas/ChatRequest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,14 @@ properties:
- "null"
description: Optional educational context (e.g., course material, task context).
additionalProperties: true
properties:
task:
description: Optional task grounding this conversation.
type:
- object
- "null"
allOf:
- $ref: "../../shared/schemas/Task.yml"
configuration:
type:
- object
Expand Down
7 changes: 4 additions & 3 deletions paths/evaluate/evaluate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -98,18 +98,19 @@
user:
userId: "user-789"
type: LEARNER
detailPreference: DETAILED
tonePreference: FRIENDLY
languagePreference: "en"
preference:
detail: DETAILED
tone: FRIENDLY
language: "en"
criteria:
- criterionId: "crit-1"
name: "Correctness"
context: "The explanation of polymorphism is conceptually correct."
maxPoints: 10

Check warning on line 109 in paths/evaluate/evaluate.yml

View workflow job for this annotation

GitHub Actions / Lint / Lint

no-invalid-media-type-examples

Example value must conform to the schema: `0` property must NOT have unevaluated properties `maxPoints`.
- criterionId: "crit-2"
name: "Clarity"
context: "The explanation is clear, well-structured, and easy to understand."
maxPoints: 5

Check warning on line 113 in paths/evaluate/evaluate.yml

View workflow job for this annotation

GitHub Actions / Lint / Lint

no-invalid-media-type-examples

Example value must conform to the schema: `1` property must NOT have unevaluated properties `maxPoints`.
preSubmissionFeedback:
enabled: false
configuration:
Expand Down
Loading