Skip to main content

Agent-native search client: smart search for agents, however you build them

Project description

meyhem

Smart search for agents, however you build them.

Install

pip install meyhem

Quickstart

from meyhem import Meyhem

m = Meyhem('my-agent')
res = m.search("Python testing frameworks")
m.select(res[0])
m.report(res[0], True)

API

  • Meyhem(agent_id, base_url) — create a client
  • m.search(query, num_results=5) — returns list of SearchResult
  • m.select(result) — report which result your agent picked
  • m.report(result, success, details=None) — report if it worked

SearchResult fields

url, title, snippet, score, source_domain, provider, position

Context manager

with Meyhem('my-agent') as m:
    res = m.search("best practices for async Python")
    print(res[0].title, res[0].score)

Links

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

meyhem-0.1.1.tar.gz (2.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

meyhem-0.1.1-py3-none-any.whl (2.7 kB view details)

Uploaded Python 3

File details

Details for the file meyhem-0.1.1.tar.gz.

File metadata

  • Download URL: meyhem-0.1.1.tar.gz
  • Upload date:
  • Size: 2.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.12

File hashes

Hashes for meyhem-0.1.1.tar.gz
Algorithm Hash digest
SHA256 80cf251d4a17451217b7c5fd593640a9e289035fb6db895e19c8a88334d3f857
MD5 1f34d251900baeb0556a390e4c9fffb9
BLAKE2b-256 2c1f695965c0085ef4bba2a01170df6e7308b88df601a336c8fb646deb5efcfe

See more details on using hashes here.

File details

Details for the file meyhem-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: meyhem-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 2.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.12

File hashes

Hashes for meyhem-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 3ba937557fcf2bba1ed816a5142087b2bf6792073caed942c5ec3b5db530711f
MD5 17ffcbac954f9d0387f33ca6b1089e07
BLAKE2b-256 54dcdf90660bd5c6cb3f7e51a280c0b97714a6f395bec810b3da12f75c5bbca9

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page