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
42 changes: 21 additions & 21 deletions pdl-live-react/src/pdl_ast.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,9 @@ export type Description19 = string | null
*/
export type Def = string | null
export type ContributeTarget = "result" | "context"
export type Value = unknown[]
export type Value = unknown[] | string | LocalizedExpression
export type Path = string[]
export type File = string
/**
* Indicate if the block contributes to the result and background context.
*
Expand Down Expand Up @@ -243,8 +245,6 @@ export type Context =
*
*/
export type PdlId = string | null
export type Path = string[]
export type File = string
export type StartNanos = number | null
export type EndNanos = number | null
export type FirstUseNanos = number | null
Expand Down Expand Up @@ -3821,6 +3821,24 @@ export interface Defs19 {
export interface ContributeValue {
value: Value
}
export interface LocalizedExpression {
expr: Expr
pdl__location?: PdlLocationType | null
}
export interface Expr {
[k: string]: unknown
}
/**
* Internal data structure to keep track of the source location information.
*/
export interface PdlLocationType {
path: Path
file: File
table: Table
}
export interface Table {
[k: string]: number
}
export interface PdlParser {
description?: Description20
spec?: Spec20
Expand All @@ -3835,17 +3853,6 @@ export interface RegexParser {
regex: Regex
mode?: Mode
}
/**
* Internal data structure to keep track of the source location information.
*/
export interface PdlLocationType {
path: Path
file: File
table: Table
}
export interface Table {
[k: string]: number
}
/**
* Internal data structure to record timing information in the trace.
*/
Expand All @@ -3855,13 +3862,6 @@ export interface PdlTiming {
first_use_nanos?: FirstUseNanos
timezone?: Timezone
}
export interface LocalizedExpression {
expr: Expr
pdl__location?: PdlLocationType | null
}
export interface Expr {
[k: string]: unknown
}
export interface JoinText {
as?: As
with?: With
Expand Down
4 changes: 2 additions & 2 deletions src/pdl/pdl-schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -3766,7 +3766,7 @@
"type": "null"
}
],
"default": null,
"default": "${ pdl_context }",
"description": "Messages to send to the model.\n ",
"title": "Input"
},
Expand Down Expand Up @@ -6237,7 +6237,7 @@
"type": "null"
}
],
"default": null,
"default": "${ pdl_context }",
"description": "Messages to send to the model.\n ",
"title": "Input"
},
Expand Down
2 changes: 1 addition & 1 deletion src/pdl/pdl_ast.py
Original file line number Diff line number Diff line change
Expand Up @@ -388,7 +388,7 @@ class ModelBlock(LeafBlock):
model: ExpressionType
"""Model to use.
"""
input: Optional["BlockType"] = None
input: "BlockType" = "${ pdl_context }"
"""Messages to send to the model.
"""
modelResponse: Optional[str] = None
Expand Down