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.0.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.0-py3-none-any.whl (2.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: meyhem-0.1.0.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.0.tar.gz
Algorithm Hash digest
SHA256 232d5012e463f7c6dbba08ad13bf2956a336d4be0e4f44f809690424de2f57b3
MD5 e593ab9a75aef498ce04a7626eefa973
BLAKE2b-256 d2773e353d16c11c00351c5a99a8b4bb8f52f28e43f81d941826fe292b1b3615

See more details on using hashes here.

File details

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

File metadata

  • Download URL: meyhem-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 2.6 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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2e142c9e7fe2d66614fd1aa0670841e3a846ab099d1ec68476f11306ace6dd0c
MD5 743ac2e6dd9402523195263bbe0dad20
BLAKE2b-256 56a9130015e1ab7bce611cdb95241d47f56de4172d530884204d5120e3ba613e

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