AgentForce Setup

Use AgentForce to manage and deploy AI agents efficiently.

1. Set up the AgentForce Client

Once the installation is complete, install agentforce from the Latentforce library. You will need to generate an API key to get outputs from the agent. Refer documentation for steps to generate an API key.

from latentforce import AgentForce

# Create client
agent = AgentForce(latent_force_api_key="xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx") # Your API key here!

2. Process Image

An image cannot be passed directly to an agent in AgentForce. To Process an image in a usable format -

image_path = /path/to/your/image/name.jpg
img_processed = agent.load_and_process_image(
    image_path = image_path
)

An intial client setup has been completed. Refer

  1. Document Key-Value Extraction Agent for Document Key-Value Extraction Agent.

  2. ID Card Agent for ID Card Agent.