mirror of
https://github.com/trustgraph-ai/trustgraph.git
synced 2026-04-25 08:26:21 +02:00
* Prompt manager integrated and working with 6 tests * Updated templates to for prompt-template update
19 lines
349 B
Python
Executable file
19 lines
349 B
Python
Executable file
#!/usr/bin/env python3
|
|
|
|
import pulsar
|
|
from trustgraph.clients.prompt_client import PromptClient
|
|
|
|
p = PromptClient(pulsar_host="pulsar://localhost:6650")
|
|
|
|
question = """What is the square root of 16?"""
|
|
|
|
resp = p.request(
|
|
id="question",
|
|
terms = {
|
|
"question": question,
|
|
"attitude": "Spanish-speaking bot"
|
|
}
|
|
)
|
|
|
|
print(resp)
|
|
|