add comment todos

This commit is contained in:
Xi Yan 2024-09-09 11:50:35 -07:00
parent 8c378fadcc
commit 26209a9d99
2 changed files with 2 additions and 14 deletions

View file

@ -7,17 +7,6 @@ def main(host: str, port: int):
base_url=f"http://{host}:{port}",
)
# Need smt like this to work w/ server, however this is not what was generated by SDK
# response = client.inference.chat_completion(
# request={
# "messages": [
# UserMessage(content="hello world, troll me in two-paragraphs about 42", role="user"),
# ],
# "model": "Meta-Llama3.1-8B-Instruct",
# "stream": True,
# },
# )
agentic_system_create_response = client.agentic_system.create(
agent_config={
"instructions": "You are a helpful assistant",
@ -32,7 +21,7 @@ def main(host: str, port: int):
)
print(agentic_system_create_session_response)
# TODO(xiyan): This does not work with current server, need to wrap it in a request (similar to AgentConfig?)
# TODO(xiyan): remove request wrapper
response = client.agentic_system.turns.create(
request={
"agent_id": agentic_system_create_response.agent_id,

View file

@ -7,7 +7,6 @@ def main(host: str, port: int):
base_url=f"http://{host}:{port}",
)
# Need smt like this to work w/ server, however this is not what was generated by SDK (?)
response = client.inference.chat_completion(
request={
"messages": [
@ -19,7 +18,7 @@ def main(host: str, port: int):
)
print(response)
# This does not work with current server
# TODO (xiyan). This does not work with current server, need to fix
# response = client.inference.chat_completion(
# messages=[
# UserMessage(content="hello world, troll me in two-paragraphs about 42", role="user"),