Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Polybot Argo Autogen #5

Closed
wants to merge 2 commits into from
Closed

Conversation

Linked-Liszt
Copy link
Collaborator

@Linked-Liszt Linked-Liszt commented Jan 16, 2025

Added 2 files for autogen experimentation. Here's a brief overview of how to use them:

Autogen_llm:

Can be used like this: Set the config to this (can change the model and temp)

llm_config = {
    "model": "gpt4turbo",
    "model_client_cls": "ArgoModelClient",
    'temp': 0.9
}

Then before calling the agents, all agent models must be registered

import autogen_llm

polybot_admin.register_model_client(autogen_llm.ArgoModelClient)
code_writer_agent.register_model_client(autogen_llm.ArgoModelClient)

Chatbot_cli:

For the CLI implementation, it operates on standard conversation I/O.
See the lines at the bottom on how to interact with it:

llm = llms.AnlLLM(params)
embeddings = llms.ANLEmbeddingModel(params)


polybot_exec = PolybotExecChat(llm, embeddings, None)
polybot_exec._init_chain()


chat_history = [{'content': 'Pick up the vial in rack 1', 'role': 'user'}]
chat_history = polybot_exec.generate_response(chat_history, True)

print(chat_history[-1])

@Linked-Liszt
Copy link
Collaborator Author

Closing PR since code has been integrated into development branch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant