Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/microsoft/poml
/ functions
Functions
726 in github.com/microsoft/poml
⨍
Functions
726
◇
Types & classes
263
↳
Endpoints
1
↓ 126 callers
Method
map
(f: (x: T) => R)
packages/poml-vscode/util/logger.ts:25
↓ 94 callers
Function
read
( element: React.ReactElement | string, options?: PomlReaderOptions, context?: { [key: string]: any },
packages/poml/index.ts:17
↓ 83 callers
Function
poml
(element: React.ReactElement | string)
packages/poml/index.ts:114
↓ 77 callers
Function
component
(name: string, options?: string[] | NonStrictComponentOptions)
packages/poml/base.tsx:990
↓ 75 callers
Method
clear
* Clears all tools from the collection.
packages/poml/util/schema.ts:250
↓ 75 callers
Method
get
(key: string)
packages/poml/base.tsx:440
↓ 71 callers
Method
empty
()
packages/poml/base.tsx:358
↓ 54 callers
Method
write
* Convert an IR string into {@link RichContent} without exposing mapping information. * * The method delegates to {@link writeWithSourceMap} and
packages/poml/writer.ts:259
↓ 48 callers
Function
write
(chunk, encoding, callback)
packages/poml/util/reactRender.ts:11
↓ 40 callers
Method
tag
Helper method to create a tag with the given name and attributes. Implemented by subclasses.
python/poml/_tags.py:9
↓ 39 callers
Method
react
(context?: PomlContext)
packages/poml/reader/base.tsx:29
↓ 32 callers
Method
raiseError
(message: string, element: cheerio.Cheerio<any>)
packages/poml/writer.ts:214
↓ 30 callers
Function
print_section
Print a section with colored title and uncolored content
python/tests/integration/common_utils.py:25
↓ 29 callers
Method
add
(error: PomlError)
packages/poml/base.tsx:342
↓ 29 callers
Method
ensureRange
(position: number)
packages/poml/file.tsx:1226
↓ 28 callers
Method
fromProps
(message: string, props: PropsBase, options?: PomlErrorOptions)
packages/poml/base.tsx:297
↓ 27 callers
Method
first
()
packages/poml/base.tsx:346
↓ 26 callers
Method
reportError
(msg: string, range?: Range, cause?: any)
packages/poml/file.tsx:451
↓ 25 callers
Function
computeSyntaxContext
( props: PropsSyntaxBase, defaultSyntax?: string, invalidPresentations?: string[] )
packages/poml/essentials.tsx:34
↓ 25 callers
Function
parseText
(object: string | Buffer, type?: AnyValue)
packages/poml/util/index.ts:54
↓ 24 callers
Method
xmlElementRange
(element: XMLElement | XMLTextContent | XMLAttribute)
packages/poml/file.tsx:1230
↓ 23 callers
Function
print_separator
Print a colorized separator with optional title
python/tests/integration/common_utils.py:14
↓ 20 callers
Method
log
(level: 'error' | 'warn' | 'info', message: string)
packages/poml-vscode/command/testCommand.ts:632
↓ 20 callers
Method
object
Object (`<obj>`, `<dataObj>`) displays external data or object content. When in serialize mode, it's serialized according to the given seriali
python/poml/_tags.py:1201
↓ 20 callers
Method
xmlAttributeValueRange
(element: XMLAttribute)
packages/poml/file.tsx:1270
↓ 19 callers
Method
create
( resource: vscode.Uri, previewColumn: vscode.ViewColumn, locked: boolean, context: vscode.Ext
packages/poml-vscode/panel/panel.ts:77
↓ 19 callers
Method
set
(key: string, value: any)
packages/poml/base.tsx:445
↓ 19 callers
Function
xmlAttribute
(element: XMLElement, key: string)
packages/poml/file.tsx:1587
↓ 18 callers
Method
log
(message: string, data?: any)
packages/poml-vscode/util/logger.ts:70
↓ 17 callers
Method
reportTelemetry
(event: string, properties: { [key: string]: any })
packages/poml-vscode/util/telemetryServer.ts:58
↓ 17 callers
Method
writeElementTree
( element: cheerio.Cheerio<any>, $: cheerio.CheerioAPI )
packages/poml/writer.ts:246
↓ 16 callers
Method
addZodTool
* Adds a tool with a Zod schema to the collection. * @param name The name of the tool * @param description A description of what the tool does
packages/poml/util/schema.ts:111
↓ 16 callers
Function
irElement
(type: string, props: any, ...children: React.ReactNode[])
packages/poml/base.tsx:154
↓ 16 callers
Method
register
(command: T)
packages/poml-vscode/util/commandManager.ts:19
↓ 15 callers
Method
text
Text (`<text>`, `<poml>`) is a wrapper for any contents. By default, it uses `markdown` syntax and writes the contents within it directly to t
python/poml/_tags.py:842
↓ 14 callers
Method
size
* Gets the number of tools in the collection. * @returns The number of tools
packages/poml/util/schema.ts:243
↓ 13 callers
Method
createMappingNode
(element: cheerio.Cheerio<any>, outputLength: number)
packages/poml/writer.ts:159
↓ 13 callers
Function
set_trace
Enable or disable tracing of ``poml`` calls with optional backend integrations. Args: enabled: Controls which tracing backends to enable.
python/poml/api.py:35
↓ 12 callers
Function
exists
(tokArr)
packages/poml/util/xmlContentAssist.js:439
↓ 12 callers
Method
getTool
* Gets a tool by name. * @param name The name of the tool to retrieve * @returns The tool schema if found, undefined otherwise
packages/poml/util/schema.ts:218
↓ 12 callers
Method
toOpenAPI
* Converts the schema to an OpenAPI/JSON schema format. * @returns The OpenAPI schema representation * @throws Error if no schema is available
packages/poml/util/schema.ts:69
↓ 12 callers
Method
writeElementTrees
( elements: cheerio.Cheerio<any>, $: cheerio.CheerioAPI, element?: cheerio.Cheerio<any> )
packages/poml/writer.ts:1016
↓ 11 callers
Method
clear
()
packages/poml/base.tsx:362
↓ 11 callers
Method
fromOpenAPI
* Creates a Schema instance from an OpenAPI schema object. * @param openApiSchema The OpenAPI schema object * @returns A new Schema instance
packages/poml/util/schema.ts:26
↓ 11 callers
Method
getRuntimeParameters
()
packages/poml/file.tsx:261
↓ 11 callers
Method
update
(resource: vscode.Uri)
packages/poml-vscode/panel/panel.ts:246
↓ 10 callers
Method
getResponseSchema
()
packages/poml/file.tsx:253
↓ 10 callers
Function
getTelemetryReporter
()
packages/poml-vscode/util/telemetryClient.ts:45
↓ 10 callers
Method
makeBox
( text: string | MarkdownBox, layout: 'block' | 'newline' | 'inline', element: cheerio.Cheerio<any
packages/poml/writer.ts:704
↓ 10 callers
Function
poml
Process POML markup and return the result in the specified format. POML (Prompt Orchestration Markup Language) is a markup language for creating
python/poml/api.py:420
↓ 9 callers
Function
_read_latest_traced_file
Read the most recent traced file with the given suffix.
python/poml/api.py:155
↓ 9 callers
Function
commandLine
(args: CliArgs)
packages/poml/index.ts:147
↓ 9 callers
Function
htmlContentsToPoml
( element: cheerio.Cheerio<any>, $: cheerio.CheerioAPI, options?: DocumentProps )
packages/poml/components/document.tsx:59
↓ 9 callers
Method
postMessage
* Post a message to the poml extension
packages/poml-vscode-webview/util.ts:7
↓ 8 callers
Method
fillNodeContents
( document: XMLNode, element: cheerio.Cheerio<any>, $: cheerio.CheerioAPI )
packages/poml/writer.ts:1372
↓ 8 callers
Method
getCompletions
(offset: number)
packages/poml/reader/base.tsx:37
↓ 8 callers
Function
getState
()
packages/poml-vscode-webview/state.ts:20
↓ 8 callers
Method
getToolsSchema
()
packages/poml/file.tsx:257
↓ 8 callers
Function
richContentFromSourceMap
(contents: SourceMapRichContent[])
packages/poml/base.tsx:85
↓ 8 callers
Function
trimChildrenWhiteSpace
(children: React.ReactNode, props: PropsBase)
packages/poml/base.tsx:180
↓ 7 callers
Function
findComponentByAliasOrUndefined
( alias: string, disabled?: Set<string> )
packages/poml/base.tsx:1038
↓ 7 callers
Method
isPreviewOf
(resource: vscode.Uri)
packages/poml-vscode/panel/panel.ts:381
↓ 7 callers
Function
is_dict
(obj: object)
python/poml/integration/pydantic.py:195
↓ 7 callers
Method
spec
()
packages/poml/base.tsx:702
↓ 7 callers
Method
wrapBox
( box: MarkdownBox, wrapBefore: string, wrapAfter: string, element?: cheerio.Cheerio<any> )
packages/poml/writer.ts:740
↓ 7 callers
Method
writeMessagesWithSourceMap
* Similar to {@link writeWithSourceMap} but groups the segments into speaker * messages.
packages/poml/writer.ts:406
↓ 6 callers
Function
clear_trace
Clear the collected trace log.
python/poml/api.py:110
↓ 6 callers
Function
expandRelative
(src: string)
packages/poml/base.tsx:594
↓ 6 callers
Function
fn
()
packages/poml/tests/index.test.tsx:429
↓ 6 callers
Method
getAliases
(lower: boolean = true)
packages/poml/base.tsx:654
↓ 6 callers
Method
incrementStatistics
(key: string, n?: number)
packages/poml-vscode/lsp/server.ts:201
↓ 6 callers
Method
indentMappings
* Add an offset to mapping nodes. * * @param mappings - Original mappings. * @param indent - The offset amount. * @param ignoreBefore - Ig
packages/poml/writer.ts:185
↓ 6 callers
Method
indentMultiMedia
( multimedia: PositionalContentMultiMedia[], indent: number, ignoreBefore: number )
packages/poml/writer.ts:201
↓ 6 callers
Function
parseJsonWithBuffers
(text: string)
packages/poml/util/trace.ts:22
↓ 6 callers
Method
style
(props: any, stylesheet?: StyleSheet)
packages/poml/base.tsx:751
↓ 6 callers
Method
toOpenAI
* Converts the tools collection to OpenAI function calling format. * @returns An array of OpenAI function definitions * @example * [ * {
packages/poml/util/schema.ts:197
↓ 6 callers
Method
toZod
* Converts the schema to a Zod schema. * @returns The Zod schema representation * @throws Error if no schema is available
packages/poml/util/schema.ts:49
↓ 6 callers
Method
writeWithSourceMap
* Render the IR string and return detailed mapping for each produced content * segment. * * Each returned {@link SourceMapRichContent} descri
packages/poml/writer.ts:390
↓ 5 callers
Function
_latest_trace_prefix
()
python/poml/api.py:128
↓ 5 callers
Method
appendLine
(value: string)
packages/poml-vscode/util/logger.ts:83
↓ 5 callers
Function
canonical
(p: string)
packages/poml-vscode/tests/panelAutoAdd.test.ts:16
↓ 5 callers
Function
disposeAll
(disposables: vscode.Disposable[])
packages/poml-vscode/util/dispose.ts:3
↓ 5 callers
Method
dump_xml
Dumps the generated XML string, pretty-printed by default (useful for debugging).
python/poml/prompt.py:172
↓ 5 callers
Method
evaluateExpression
( expression: string, context: { [key: string]: any }, range?: Range, stripCurlyBrackets: bool
packages/poml/file.tsx:1028
↓ 5 callers
Method
fromZod
* Creates a Schema instance from a Zod schema. * @param zodSchema The Zod schema * @returns A new Schema instance
packages/poml/util/schema.ts:40
↓ 5 callers
Method
getExpressionTokens
()
packages/poml/file.tsx:334
↓ 5 callers
Method
onDidUserOptionsChange
()
packages/poml-vscode/panel/panel.ts:558
↓ 5 callers
Method
parameters
()
packages/poml/base.tsx:706
↓ 5 callers
Method
postCommand
* Post a command to be executed to the poml extension
packages/poml-vscode-webview/util.ts:12
↓ 5 callers
Method
raiseErrorAndReturnEmpty
(message: string, element: cheerio.Cheerio<any>)
packages/poml/writer.ts:699
↓ 5 callers
Method
render
Renders the final XML. Raises error if tags are still open.
python/poml/prompt.py:159
↓ 5 callers
Function
setupToolbar
(vscode: any, messaging: MessagePoster)
packages/poml-vscode-webview/toolbar.ts:62
↓ 5 callers
Function
stripEndline
(str: string)
packages/poml/tests/index.test.tsx:671
↓ 5 callers
Method
text
Adds text content to the currently open XML element.
python/poml/prompt.py:109
↓ 5 callers
Function
toRecordColumns
(props: TableProps)
packages/poml/components/table.tsx:248
↓ 5 callers
Method
visit
(element: XMLElement)
packages/poml/file.tsx:344
↓ 4 callers
Function
_create_image
(tmp_path: Path)
python/tests/test_poml_formats.py:21
↓ 4 callers
Function
check_trace
Check the trace details and metrics after a delay. Args: trace_id: The ID of the trace to check must_have: List of span name
python/tests/integration/mlflow_utils.py:7
↓ 4 callers
Method
formatError
(msg: string, range?: Range, cause?: any)
packages/poml/file.tsx:439
↓ 4 callers
Function
getClient
()
packages/poml-vscode/extension.ts:129
next →
1–100 of 726, ranked by callers