mirror of
https://github.com/trustgraph-ai/trustgraph.git
synced 2026-04-25 16:36:21 +02:00
* Prompt manager integrated and working with 6 tests * Updated templates to for prompt-template update
18 lines
346 B
Python
Executable file
18 lines
346 B
Python
Executable file
#!/usr/bin/env python3
|
|
|
|
import json
|
|
from trustgraph.clients.prompt_client import PromptClient
|
|
|
|
p = PromptClient(pulsar_host="pulsar://localhost:6650")
|
|
|
|
description = """Fred is a 4-legged cat who is 12 years old"""
|
|
|
|
resp = p.request(
|
|
id="analyze",
|
|
terms = {
|
|
"description": description,
|
|
}
|
|
)
|
|
|
|
print(json.dumps(resp, indent=4))
|
|
|